Skip to content

guestin/kboot-web-echo-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Config

[web]
# only support sqlite or postgres
listen = "0.0.0.0:8080"
debug = true

Usage

package apis

import (
	"github.com/guestin/kboot-web-echo-starter"
	"github.com/guestin/kboot-web-echo-starter/mid"
)

func init() {
	web.Router(routeBuilder)
	web.DependsOn("db")
}

func routeBuilder(eCtx *echo.Echo) error {
	eCtx.GET("/echo", mid.Wrap(Echo))
	return nil
}

About

kboot web echo starter

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages