chore: fix mismatched function names in godoc

Signed-off-by: George Ma <mayangang@outlook.com>
This commit is contained in:
George Ma 2024-03-22 14:30:22 +08:00
parent 59c5059081
commit 14a8fac092
2 changed files with 2 additions and 2 deletions

View file

@ -406,7 +406,7 @@ func parseStaticRoutes(r api.JoinResponse) ([]*types.StaticRoute, error) {
return routes, nil return routes, nil
} }
// parseInterfaces validates all the parameters of an Interface and returns them. // parseInterface validates all the parameters of an Interface and returns them.
func parseInterface(r api.CreateEndpointResponse) (*api.Interface, error) { func parseInterface(r api.CreateEndpointResponse) (*api.Interface, error) {
var outIf *api.Interface var outIf *api.Interface

View file

@ -48,7 +48,7 @@ func (p *profileData) generateDefault(out io.Writer) error {
return compiled.Execute(out, p) return compiled.Execute(out, p)
} }
// macrosExists checks if the passed macro exists. // macroExists checks if the passed macro exists.
func macroExists(m string) bool { func macroExists(m string) bool {
_, err := os.Stat(path.Join(profileDirectory, m)) _, err := os.Stat(path.Join(profileDirectory, m))
return err == nil return err == nil