Skip to content

Commit

Permalink
make golint happy by not publicizing methods that return private types
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Hollensbe <[email protected]>
  • Loading branch information
Erik Hollensbe committed Jul 26, 2021
1 parent 6432472 commit a663ce4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type serviceAPIClient struct {
client *http.Client
}

func NewServiceAPI() (*serviceAPIClient, error) {
func newServiceAPI() (*serviceAPIClient, error) {
content, err := ioutil.ReadFile("/var/lib/zerotier-one/authtoken.secret")
if err != nil {
return nil, err
Expand Down Expand Up @@ -82,7 +82,7 @@ func main() {
errExit("your template is busted; get a different version or stop modifying the source code :)")
}

sAPI, err := NewServiceAPI()
sAPI, err := newServiceAPI()
if err != nil {
errExit(err)
}
Expand Down

0 comments on commit a663ce4

Please sign in to comment.