Skip to content

Commit

Permalink
fix some code style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
wollomatic committed Jul 21, 2024
1 parent eedad95 commit 00a4b61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion hostsfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
// refreshHostsfile reads the docker containers, creates the container list and starts writeHostsfile() to write the hosts file
func refreshHostsfile(cli *client.Client) error {

dockerHosts := []byte{}
var dockerHosts []byte

containers, err := cli.ContainerList(context.Background(), types.ContainerListOptions{})
if err != nil {
Expand Down
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ import (
)

const (
PROGRAM_NAME = "container-hoster"
PROGRAM_URL = "github.com/wollomatic/container-hoster"
programName = "container-hoster"
programURL = "github.com/wollomatic/container-hoster"
)

var (
refreshHostsfileNeeded bool = true
refreshHostsfileNeeded = true
networkRegexpCompiled *regexp.Regexp
version = "develop" // will be set in Github Action
)

func main() {

log.Printf("--- Starting %s %s (%s, %s, %s) %s ---\n", PROGRAM_NAME, version, runtime.GOOS, runtime.GOARCH, runtime.Version(), PROGRAM_URL)
log.Printf("--- Starting %s %s (%s, %s, %s) %s ---\n", programName, version, runtime.GOOS, runtime.GOARCH, runtime.Version(), programURL)

conf.getFromENV()
conf.logConfig()
Expand Down

0 comments on commit 00a4b61

Please sign in to comment.