mirror of
https://github.com/nicksherron/bashhub-server.git
synced 2024-09-20 03:55:56 +08:00
gofmt
This commit is contained in:
parent
7b16271dbe
commit
d9c3ab243f
|
@ -39,6 +39,7 @@ var rootCmd = &cobra.Command{
|
|||
internal.Run()
|
||||
},
|
||||
}
|
||||
|
||||
// Execute runs root command
|
||||
func Execute() {
|
||||
if err := rootCmd.Execute(); err != nil {
|
||||
|
|
|
@ -27,7 +27,7 @@ import (
|
|||
|
||||
// versionCmd represents the version command
|
||||
var (
|
||||
GitCommit string
|
||||
GitCommit string
|
||||
BuildDate string
|
||||
Version string
|
||||
OsArch = fmt.Sprintf("%s %s", runtime.GOOS, runtime.GOARCH)
|
||||
|
|
|
@ -82,7 +82,7 @@ type System struct {
|
|||
|
||||
var (
|
||||
// Addr is the listen and server address for our server (gin)
|
||||
Addr string
|
||||
Addr string
|
||||
// LogFile is the log file location for http logging. Default is stderr.
|
||||
LogFile string
|
||||
)
|
||||
|
@ -109,6 +109,7 @@ func loggerWithFormatterWriter(f gin.LogFormatter) gin.HandlerFunc {
|
|||
Output: getLog(),
|
||||
})
|
||||
}
|
||||
|
||||
// Run starts server
|
||||
func Run() {
|
||||
// Initialize backend
|
||||
|
|
Loading…
Reference in a new issue