Skip to content

Commit

Permalink
Merge pull request #27 from goodhosts/const-to-var
Browse files Browse the repository at this point in the history
changing to vars so devs can set them
  • Loading branch information
luthermonson authored Dec 1, 2021
2 parents 142c66e + b472d37 commit d0115ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package hostsfile

const (
var (
HostsPerLine = -1 // unlimited
HostsFilePath = "/etc/hosts"
eol = "\n"
Expand Down
4 changes: 2 additions & 2 deletions utils_windows.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package hostsfile

const (
HostsFilePath = "${SystemRoot}/System32/drivers/etc/hosts"
var (
HostsPerLine = 9
HostsFilePath = "${SystemRoot}/System32/drivers/etc/hosts"
eol = "\r\n"
)

Expand Down

0 comments on commit d0115ab

Please sign in to comment.