Versions in this module Expand all Collapse all v0 v0.1.2 Apr 17, 2022 v0.1.1 Apr 14, 2022 Changes in this version + const DEV + const FILTER_ACCESS + const FILTER_DENY + const PROD + var AppConfig *kcginAppConfig + var AppPath string + var HTTPMETHOD = map[string]bool + var KcConfig *Config + var NotAutoRouter = map[string]bool + var WorkPath string + func AddFuncMap(key string, fn interface{}) error + func AddTemplateExt(ext string) + func AddViewPath(viewPath string) error + func Any(pattern string, c ControllerInterface, method string) + func AssetsCSS(text string) template.HTML + func AssetsJs(text string) template.HTML + func AutoRouter(pattern string, c ControllerInterface, extends ...string) + func Bind(e *gin.Engine) + func BuildTemplate(dir string, files ...string) error + func Compare(a, b interface{}) (equal bool) + func CompareNot(a, b interface{}) (equal bool) + func Connect(pattern string, c ControllerInterface, method string) + func Date(t time.Time, format string) string + func DateFormat(t time.Time, layout string) (datestring string) + func DateParse(dateString, format string) (time.Time, error) + func Delete(pattern string, c ControllerInterface, method string) + func ExecuteViewPathTemplate(wr io.Writer, name string, viewPath string, data interface{}) error + func Get(pattern string, c ControllerInterface, method string) + func GetConfig(returnType, key string, defaultVal interface{}) (value interface{}, err error) + func GetURL(endpoint string, fields ...interface{}) string + func Group(group string) *routerGroup + func HTML2str(html string) string + func HasTemplateExt(paths string) bool + func Head(pattern string, c ControllerInterface, method string) + func Htmlquote(text string) string + func Htmlunquote(text string) string + func MapGet(arg1 interface{}, arg2 ...interface{}) (interface{}, error) + func NotNil(a interface{}) (isNil bool) + func Options(pattern string, c ControllerInterface, method string) + func ParseForm(form url.Values, obj interface{}) error + func Patch(pattern string, c ControllerInterface, method string) + func Post(pattern string, c ControllerInterface, method string) + func Put(pattern string, c ControllerInterface, method string) + func RenderForm(obj interface{}) template.HTML + func Router(pattern string, c ControllerInterface, methods string) + func Static(pattern string, root string) + func Str2html(raw string) template.HTML + func Substr(s string, start, length int) string + func Trace(pattern string, c ControllerInterface, method string) + func URLFor(endpoint string, values ...interface{}) string + type Config struct + AppName string + ConfName string + ConfPath string + RunMode string + WebConfig WebConfig + type Controller struct + Ctx *gin.Context + Method string + func (c *Controller) Finish(ctx *gin.Context) + func (c *Controller) Init(ctx *gin.Context, method string) + func (c *Controller) Prepare(ctx *gin.Context) + type ControllerInfo struct + type ControllerInterface interface + Finish func(ctx *gin.Context) + Init func(ctx *gin.Context, method string) + Prepare func(ctx *gin.Context) + type ControllerRegister struct + type RouterInterface interface + Any func(pattern string, c ControllerInterface, method string) + Connect func(pattern string, c ControllerInterface, method string) + Delete func(pattern string, c ControllerInterface, method string) + Get func(pattern string, c ControllerInterface, method string) + Head func(pattern string, c ControllerInterface, method string) + Options func(pattern string, c ControllerInterface, method string) + Patch func(pattern string, c ControllerInterface, method string) + Post func(pattern string, c ControllerInterface, method string) + Put func(pattern string, c ControllerInterface, method string) + Router func(pattern string, c ControllerInterface, mappingMethods ...string) + Trace func(pattern string, c ControllerInterface, method string) + type WebConfig struct + TemplateLeft string + TemplateRight string