Versions in this module Expand all Collapse all v0 v0.1.0 Aug 27, 2026 Changes in this version + func NewRouter() *router + func NewSin() *sin + type Context struct + Keys map[string]any + Method string + ParamM map[string]string + Path string + Request *http.Request + StatusCode int + Writer http.ResponseWriter + func NewContext(writer http.ResponseWriter, request *http.Request) *Context + func (c *Context) Abort() + func (c *Context) BindJSON(obj any) error + func (c *Context) Get(key string) (value any, ok bool) + func (c *Context) IsAborted() bool + func (c *Context) Next() + func (c *Context) Param(key string) string + func (c *Context) PostForm(key string) string + func (c *Context) Query(key string) string + func (c *Context) RetData(code int, data []byte) + func (c *Context) RetHtml(code int, name string, data any) + func (c *Context) RetJson(code int, v any) + func (c *Context) RetString(code int, format string, a ...any) + func (c *Context) Set(key string, value any) + func (c *Context) SetHeader(key string, value string) + func (c *Context) SetStatusCode(code int) + func (c *Context) ShouldBind(obj any) bool + type H map[string]any + type HandlerFunc func(c *Context) + type ServerConfig struct + Addr string + MaxHeaderBytes int + ReadTimeout time.Duration + ShutdownTimeout time.Duration + WriteTimeout time.Duration + func DefaultServerConfig(addr string) ServerConfig