Documentation
¶
Index ¶
- Constants
- Variables
- func ExtractParamsFromFileName(fileName string, urlPath string) map[string]string
- func GetRealFileName(fileName string) string
- func Lookup(rootDir string, method string, u *url.URL) (*string, map[string]string)
- func MatchFileName(rule, name string) bool
- func NameToRegExp(name string) *regexp.Regexp
- func ParseQuery(queryStr string) map[string]interface{}
- func Server(addr string, targetDir string) error
- type Handler
- type Schema
Constants ¶
View Source
const ROUTER_PARAMS_PLACEHOLDER = "__ROUTER_PARAMS_PLACEHOLDER__"
Variables ¶
View Source
var RootDir string
server's root dir
Functions ¶
func GetRealFileName ¶
func MatchFileName ¶
func NameToRegExp ¶
func ParseQuery ¶ added in v0.5.0
Types ¶
Click to show internal directories.
Click to hide internal directories.