optimized api new with absolute path like: goctl api new $PWD/xxxx (#67)
* rebase upstream * rebase * trim no need line * trim no need line * trim no need line * update doc * remove update * optimized api new with absolute path like: goctl api new $PWD/xxxx * optimized api new with absolute path like: goctl api new $PWD/xxxx * optimized api new with absolute path like: goctl api new $PWD/xxxx * optimized api new with absolute path like: goctl api new $PWD/xxxx Co-authored-by: kingxt <dream4kingxt@163.com>
This commit is contained in:
@@ -16,6 +16,7 @@ const mainTemplate = `package main
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
|
||||
{{.importPackages}}
|
||||
)
|
||||
@@ -33,6 +34,8 @@ func main() {
|
||||
defer server.Stop()
|
||||
|
||||
handler.RegisterHandlers(server, ctx)
|
||||
|
||||
fmt.Printf("Starting server at %s:%d...\n", c.Host, c.Port)
|
||||
server.Start()
|
||||
}
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user