From c2ea304862a97f7fe2569db71bd8dd5f3016f45b Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Thu, 13 Sep 2018 21:15:31 +0200 Subject: [PATCH] Fixed function spelling --- cli/CmdStart.go | 2 +- cli/CmdVersion.go | 2 +- version/Version.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/CmdStart.go b/cli/CmdStart.go index 59f0a00..a6a39de 100644 --- a/cli/CmdStart.go +++ b/cli/CmdStart.go @@ -16,7 +16,7 @@ func cmdStart() (cmd *cobra.Command) { Run: func(cmd *cobra.Command, args []string) { // Run the server log.Printf("Simple File Server v%s", version.VERSION) - log.Printf("Compiled with Go %s", version.GetGoversion()) + log.Printf("Compiled with Go %s", version.GetGoVersion()) log.Printf("Configuration: root directory='%s', bind to='%s", configData.RootDirectory, configData.BindHostAndPort) log.Println("Start the file server now...") diff --git a/cli/CmdVersion.go b/cli/CmdVersion.go index 6dd4f88..97209b5 100644 --- a/cli/CmdVersion.go +++ b/cli/CmdVersion.go @@ -14,7 +14,7 @@ func cmdVersion() (cmd *cobra.Command) { Args: cobra.NoArgs, Run: func(cmd *cobra.Command, args []string) { fmt.Printf("Simple File Server v%s\n", version.VERSION) - fmt.Printf("Compiled with Go %s", version.GetGoversion()) + fmt.Printf("Compiled with Go %s", version.GetGoVersion()) }, } diff --git a/version/Version.go b/version/Version.go index f28ba17..eebae2c 100644 --- a/version/Version.go +++ b/version/Version.go @@ -5,9 +5,9 @@ import ( "strings" ) -const VERSION = "1.0.0" +const VERSION = "1.0.1" -func GetGoversion() (ver string) { +func GetGoVersion() (ver string) { ver = runtime.Version() ver = strings.Replace(ver, "go", "", 1) return