Fixed function spelling
This commit is contained in:
parent
a8032729f9
commit
c2ea304862
@ -16,7 +16,7 @@ func cmdStart() (cmd *cobra.Command) {
|
|||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
// Run the server
|
// Run the server
|
||||||
log.Printf("Simple File Server v%s", version.VERSION)
|
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.Printf("Configuration: root directory='%s', bind to='%s", configData.RootDirectory, configData.BindHostAndPort)
|
||||||
log.Println("Start the file server now...")
|
log.Println("Start the file server now...")
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ func cmdVersion() (cmd *cobra.Command) {
|
|||||||
Args: cobra.NoArgs,
|
Args: cobra.NoArgs,
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
fmt.Printf("Simple File Server v%s\n", version.VERSION)
|
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())
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,9 +5,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
const VERSION = "1.0.0"
|
const VERSION = "1.0.1"
|
||||||
|
|
||||||
func GetGoversion() (ver string) {
|
func GetGoVersion() (ver string) {
|
||||||
ver = runtime.Version()
|
ver = runtime.Version()
|
||||||
ver = strings.Replace(ver, "go", "", 1)
|
ver = strings.Replace(ver, "go", "", 1)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user