diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-01-10 09:06:52 +0100 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-01-10 09:25:51 +0100 |
commit | dd877bc8168c1a87a9d05d36f42b333b861c6e7e (patch) | |
tree | 0c489720344e4e67ec56097ae0466a1aa2607470 /lib/xdsconfig | |
parent | 55976cdcd58ed3311090aeb9d371bff53c49dcc1 (diff) |
Fixed go linter warnings.
Diffstat (limited to 'lib/xdsconfig')
-rw-r--r-- | lib/xdsconfig/data.go | 3 | ||||
-rw-r--r-- | lib/xdsconfig/fileconfig.go | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/xdsconfig/data.go b/lib/xdsconfig/data.go index b582ec5..ad18d60 100644 --- a/lib/xdsconfig/data.go +++ b/lib/xdsconfig/data.go @@ -35,13 +35,14 @@ type xmlServerData struct { Data ServerData `xml:"server-data"` } +// ServerData Hold server data saved in ServerData file type ServerData struct { ID string `xml:"id"` } var sdMutex = sync.NewMutex() -// ServerIDGet +// ServerIDGet Get Server unique ID func ServerIDGet() (string, error) { var f string var err error diff --git a/lib/xdsconfig/fileconfig.go b/lib/xdsconfig/fileconfig.go index 46afc57..69467b4 100644 --- a/lib/xdsconfig/fileconfig.go +++ b/lib/xdsconfig/fileconfig.go @@ -173,12 +173,12 @@ func configFilenameGet(cfgFile string) (string, error) { return path.Join(usr.HomeDir, ConfigDir, cfgFile), nil } -// FoldersConfigFilenameGet +// FoldersConfigFilenameGet Return the FoldersConfig filename func FoldersConfigFilenameGet() (string, error) { return configFilenameGet(FoldersConfigFilename) } -// ServerDataFilenameGet +// ServerDataFilenameGet Return the ServerData filename func ServerDataFilenameGet() (string, error) { return configFilenameGet(ServerDataFilename) } |