Fixed function spelling

This commit is contained in:
Thorsten Sommer 2018-09-13 21:15:31 +02:00
parent a8032729f9
commit c2ea304862
3 changed files with 4 additions and 4 deletions

View File

@ -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...")

View File

@ -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())
},
}

View File

@ -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