Closed dr-dobermann closed 1 year ago
Generated code uses net/http package instead of echo ` package server
import ( "fmt" "net/http" "time" )
var port = 8080
type Server struct { port int }
func NewServer() *http.Server {
NewServer := &Server{ port: port, } // Declare Server config server := &http.Server{ Addr: fmt.Sprintf(":%d", NewServer.port), Handler: NewServer.RegisterRoutes(), IdleTimeout: time.Minute, ReadTimeout: 10 * time.Second, WriteTimeout: 30 * time.Second, } return server
}`
No Its same for every project its just server config
Generated code uses net/http package instead of echo ` package server
import ( "fmt" "net/http" "time" )
var port = 8080
type Server struct { port int }
func NewServer() *http.Server {
}`