SYMBOL INDEX (342 symbols across 85 files) FILE: demo/filters/filter.go function init (line 8) | func init() { function myFilterBuilder (line 12) | func myFilterBuilder(next web.Filter) web.Filter { FILE: demo/user.go function SignUp (line 9) | func SignUp(c *web.Context) { function SlowService (line 26) | func SlowService(c *web.Context) { type signUpReq (line 33) | type signUpReq struct type commonResponse (line 39) | type commonResponse struct FILE: examples/first_lesson/afterclass/fibonacci.go function main (line 3) | func main() { function fibonacci (line 7) | func fibonacci(n int) int { FILE: examples/first_lesson/afterclass/fmt.go function main (line 3) | func main() { function printNumWith2 (line 8) | func printNumWith2(float642 float64) string { function printBytes (line 12) | func printBytes(data []byte) string { FILE: examples/first_lesson/afterclass/slice.go function main (line 3) | func main() { function Add (line 25) | func Add(s []int, index int, value int) []int { function Delete (line 30) | func Delete(s []int, index int) []int { FILE: examples/first_lesson/array_slice/array.go function main (line 5) | func main() { FILE: examples/first_lesson/array_slice/slice.go function main (line 5) | func main() { function SubSlice (line 34) | func SubSlice() { function ShareSlice (line 46) | func ShareSlice() { FILE: examples/first_lesson/fmt/fmt.go function main (line 5) | func main() { function replaceHolder (line 18) | func replaceHolder() { type user (line 29) | type user struct FILE: examples/first_lesson/for/for.go function main (line 5) | func main() { function ForLoop (line 11) | func ForLoop() { function ForI (line 25) | func ForI() { function ForR (line 33) | func ForR() { FILE: examples/first_lesson/func_dec/funcs.go function main (line 5) | func main() { function Fun0 (line 23) | func Fun0(name string) string { function Fun1 (line 28) | func Fun1(a string, b int) (int, string) { function Fun2 (line 34) | func Fun2(a string, b string) (age int, name string) { function Fun3 (line 42) | func Fun3(a, b, c string, abc, bcd int, p string) (d, e int, g string) { function Fun4 (line 51) | func Fun4(a string, b int, names...string) { FILE: examples/first_lesson/if_else/ifelse.go function main (line 5) | func main() { function Young (line 13) | func Young(age int) { function IfUsingNewVariable (line 22) | func IfUsingNewVariable(start int, end int) { FILE: examples/first_lesson/switch/switch.go function main (line 5) | func main() { function ChooseFruit (line 11) | func ChooseFruit(fruit string) { FILE: examples/first_lesson/types/rune.go function main (line 3) | func main() { FILE: examples/first_lesson/types/string.go function main (line 5) | func main() { FILE: examples/first_lesson/var_and_const/assignment.go function main (line 3) | func main() { FILE: examples/first_lesson/var_and_const/const.go constant internal (line 3) | internal = "包内可访问" constant External (line 4) | External = "包外可访问" function main (line 6) | func main() { FILE: examples/first_lesson/var_and_const/var.go function main (line 15) | func main() { FILE: examples/first_lesson/var_and_const/var_wrong.go function main (line 5) | func main() { FILE: examples/forth_lesson/atomic/atomic.go function main (line 6) | func main() { FILE: examples/forth_lesson/channel/channel.go function main (line 8) | func main() { function channelWithCache (line 13) | func channelWithCache() { function channelWithoutCache (line 32) | func channelWithoutCache() { FILE: examples/forth_lesson/context/context.go function main (line 9) | func main() { function WithTimeout (line 16) | func WithTimeout() { function WithCancel (line 27) | func WithCancel() { function WithDeadline (line 40) | func WithDeadline() { function WithValue (line 53) | func WithValue() { FILE: examples/forth_lesson/init/init_order.go function init (line 3) | func init() { function initBeforeSomething (line 11) | func initBeforeSomething() { function initSomething (line 15) | func initSomething() { function initAfterSomething (line 19) | func initAfterSomething() { FILE: examples/forth_lesson/init/multi_init.go function init (line 3) | func init() { function init (line 7) | func init() { FILE: examples/forth_lesson/select/select.go function main (line 8) | func main() { function Select (line 14) | func Select() { FILE: examples/forth_lesson/static_resource/file_server.go function main (line 5) | func main() { FILE: examples/second_lesson/afterclass/set.go type Set (line 3) | type Set interface FILE: examples/second_lesson/afterclass/tree.go type Tree (line 3) | type Tree interface type binaryTree (line 8) | type binaryTree struct type mutliWayTree (line 13) | type mutliWayTree struct FILE: examples/second_lesson/composition/composition.go function main (line 5) | func main() { type Swimming (line 10) | type Swimming interface type Duck (line 14) | type Duck interface type Base (line 20) | type Base struct method SayHello (line 42) | func (b *Base) SayHello() { type Concrete1 (line 24) | type Concrete1 struct method SayHello (line 32) | func (c Concrete1) SayHello() { type Concrete2 (line 28) | type Concrete2 struct FILE: examples/second_lesson/composition/no_over_write.go function main (line 5) | func main() { type Parent (line 13) | type Parent struct method SayHello (line 17) | func (p Parent) SayHello() { method Name (line 21) | func (p Parent) Name() string { type Son (line 25) | type Son struct method Name (line 30) | func (s Son) Name() string { FILE: examples/second_lesson/http/request_body.go function home (line 10) | func home(w http.ResponseWriter, r *http.Request) { function readBodyOnce (line 14) | func readBodyOnce(w http.ResponseWriter, r *http.Request) { function getBodyIsNil (line 35) | func getBodyIsNil(w http.ResponseWriter, r *http.Request) { function queryParams (line 43) | func queryParams(w http.ResponseWriter, r *http.Request) { function wholeUrl (line 48) | func wholeUrl(w http.ResponseWriter, r *http.Request) { function header (line 53) | func header(w http.ResponseWriter, r *http.Request) { function form (line 57) | func form(w http.ResponseWriter, r *http.Request) { function main (line 66) | func main() { FILE: examples/second_lesson/map/map.go function main (line 5) | func main() { FILE: examples/second_lesson/server_context/signup.go function SignUpWithoutContext (line 12) | func SignUpWithoutContext(w http.ResponseWriter, r *http.Request) { function SignUpWithoutWrite (line 31) | func SignUpWithoutWrite(w http.ResponseWriter, r *http.Request) { type signUpReq (line 48) | type signUpReq struct type commonResponse (line 54) | type commonResponse struct FILE: examples/second_lesson/struct/intf.go type animal (line 4) | type animal interface type Duck (line 13) | type Duck interface FILE: examples/second_lesson/struct/pointer.go function main (line 5) | func main() { FILE: examples/second_lesson/struct/receiver.go function main (line 5) | func main() { type User (line 30) | type User struct method ChangeName (line 36) | func (u User) ChangeName(newName string) { method ChangeAge (line 41) | func (u *User) ChangeAge(newAge int) { FILE: examples/second_lesson/struct/self_ref.go function main (line 3) | func main() { type Node (line 7) | type Node struct type NodeNode (line 20) | type NodeNode struct FILE: examples/second_lesson/struct/struct.go function main (line 5) | func main() { type ToyDuck (line 45) | type ToyDuck struct method Swim (line 50) | func (t *ToyDuck) Swim() { FILE: examples/second_lesson/struct/type_a_b.go function main (line 5) | func main() { type FakeFish (line 27) | type FakeFish method FakeSwim (line 29) | func (f FakeFish) FakeSwim() { type StrongFakeFish (line 34) | type StrongFakeFish method Swim (line 36) | func (f StrongFakeFish) Swim() { type Fish (line 40) | type Fish struct method Swim (line 43) | func (f Fish) Swim() { FILE: examples/second_lesson/struct/type_a_et_b.go function main (line 5) | func main() { type News (line 12) | type News struct method Report (line 16) | func (d News) Report() { FILE: examples/third_lesson/closure/closure.go function main (line 8) | func main() { function ReturnClosure (line 22) | func ReturnClosure(name string) func() string { function Delay (line 28) | func Delay() { FILE: examples/third_lesson/defer/defer.go function main (line 5) | func main() { FILE: examples/third_lesson/errors/error.go function main (line 8) | func main() { type MyError (line 15) | type MyError struct method Error (line 18) | func (m *MyError) Error() string { function ErrorsPkg (line 22) | func ErrorsPkg() { FILE: examples/third_lesson/errors/panic.go function main (line 5) | func main() { FILE: examples/third_lesson/goroutine/goroutine.go function main (line 8) | func main() { function GoRoutine (line 12) | func GoRoutine() { FILE: examples/third_lesson/sync/map.go function main (line 8) | func main() { FILE: examples/third_lesson/sync/mutex.go function Mutex (line 9) | func Mutex() { function RwMutex (line 15) | func RwMutex() { function Failed1 (line 26) | func Failed1() { function Failed2 (line 37) | func Failed2() { FILE: examples/third_lesson/sync/once.go function main (line 8) | func main() { function PrintOnce (line 17) | func PrintOnce() { FILE: examples/third_lesson/sync/pool.go function main (line 5) | func main() { type user (line 22) | type user struct method Reset (line 29) | func (u *user) Reset(name string, email string) { FILE: examples/third_lesson/sync/wait_group.go function main (line 8) | func main() { FILE: main.go function home (line 13) | func home(w http.ResponseWriter, r *http.Request) { function user (line 17) | func user(w http.ResponseWriter, r *http.Request) { function createUser (line 21) | func createUser(w http.ResponseWriter, r *http.Request) { function order (line 25) | func order(w http.ResponseWriter, r *http.Request) { function main (line 29) | func main() { FILE: onclass/main.go function home (line 8) | func home(w http.ResponseWriter, r *http.Request) { function user (line 12) | func user(w http.ResponseWriter, r *http.Request) { function createUser (line 16) | func createUser(w http.ResponseWriter, r *http.Request) { function order (line 20) | func order(w http.ResponseWriter, r *http.Request) { function main (line 25) | func main() { type Server (line 33) | type Server interface type sdkHttpServer (line 38) | type sdkHttpServer struct FILE: pkg/context.go type Context (line 10) | type Context struct method ReadJson (line 16) | func (c *Context) ReadJson(data interface{}) error { method OkJson (line 23) | func (c *Context) OkJson(data interface{}) error { method SystemErrJson (line 28) | func (c *Context) SystemErrJson(data interface{}) error { method BadRequestJson (line 33) | func (c *Context) BadRequestJson(data interface{}) error { method WriteJson (line 38) | func (c *Context) WriteJson(status int, data interface{}) error { method Reset (line 66) | func (c *Context) Reset(w http.ResponseWriter, r *http.Request) { function NewContext (line 51) | func NewContext(w http.ResponseWriter, r *http.Request) *Context { function newContext (line 60) | func newContext() *Context { FILE: pkg/filter.go type FilterBuilder (line 8) | type FilterBuilder type Filter (line 10) | type Filter function MetricFilterBuilder (line 12) | func MetricFilterBuilder(next Filter) Filter { function RegisterFilter (line 24) | func RegisterFilter(name string, builder FilterBuilder) { function GetFilterBuilder (line 30) | func GetFilterBuilder(name string) FilterBuilder { FILE: pkg/graceful_shutdown.go type GracefulShutdown (line 16) | type GracefulShutdown struct method ShutdownFilterBuilder (line 42) | func (g *GracefulShutdown) ShutdownFilterBuilder(next Filter) Filter { method RejectNewRequestAndWaiting (line 61) | func (g *GracefulShutdown) RejectNewRequestAndWaiting(ctx context.Cont... function NewGracefulShutdown (line 26) | func NewGracefulShutdown() *GracefulShutdown { function WaitForShutdown (line 85) | func WaitForShutdown(hooks...Hook) { FILE: pkg/handler.go type Handler (line 3) | type Handler interface type handlerFunc (line 8) | type handlerFunc FILE: pkg/hook.go type Hook (line 13) | type Hook function BuildCloseServerHook (line 18) | func BuildCloseServerHook(servers ...Server) Hook { FILE: pkg/hook_test.go function TestBuildCloseServerHook (line 10) | func TestBuildCloseServerHook(t *testing.T) { FILE: pkg/map_router.go type HandlerBasedOnMap (line 14) | type HandlerBasedOnMap struct method ServeHTTP (line 18) | func (h *HandlerBasedOnMap) ServeHTTP(c *Context) { method Route (line 31) | func (h *HandlerBasedOnMap) Route(method string, pattern string, method key (line 38) | func (h *HandlerBasedOnMap) key(method string, function NewHandlerBasedOnMap (line 43) | func NewHandlerBasedOnMap() *HandlerBasedOnMap { FILE: pkg/server.go type Routable (line 12) | type Routable interface type Server (line 18) | type Server interface type sdkHttpServer (line 27) | type sdkHttpServer struct method Route (line 35) | func (s *sdkHttpServer) Route(method string, pattern string, method Start (line 40) | func (s *sdkHttpServer) Start(address string) error { method ServeHTTP (line 44) | func (s *sdkHttpServer) ServeHTTP(writer http.ResponseWriter, request ... method Shutdown (line 53) | func (s *sdkHttpServer) Shutdown(ctx context.Context) error { function NewSdkHttpServer (line 62) | func NewSdkHttpServer(name string, builders ...FilterBuilder) Server { function NewSdkHttpServerWithFilterNames (line 85) | func NewSdkHttpServerWithFilterNames(name string, FILE: pkg/static_resource.go type StaticResourceHandlerOption (line 13) | type StaticResourceHandlerOption type StaticResourceHandler (line 15) | type StaticResourceHandler struct method ServeStaticResource (line 75) | func (h *StaticResourceHandler) ServeStaticResource(c *Context) { method cacheFile (line 112) | func (h *StaticResourceHandler) cacheFile(item *fileCacheItem) { method writeItemAsResponse (line 118) | func (h *StaticResourceHandler) writeItemAsResponse(item *fileCacheIte... method readFileFromData (line 126) | func (h *StaticResourceHandler) readFileFromData(fileName string) (*fi... type fileCacheItem (line 25) | type fileCacheItem struct function NewStaticResourceHandler (line 32) | func NewStaticResourceHandler(dir string, pathPrefix string, function WithFileCache (line 56) | func WithFileCache(maxFileSizeThreshold int, maxCacheFileCnt int) Static... function WithMoreExtension (line 67) | func WithMoreExtension(extMap map[string]string) StaticResourceHandlerOp... function getFileExt (line 135) | func getFileExt(name string) string { FILE: pkg/tree_node.go constant nodeTypeRoot (line 10) | nodeTypeRoot = iota constant nodeTypeAny (line 13) | nodeTypeAny constant nodeTypeParam (line 16) | nodeTypeParam constant nodeTypeReg (line 19) | nodeTypeReg constant nodeTypeStatic (line 22) | nodeTypeStatic constant any (line 25) | any = "*" type matchFunc (line 30) | type matchFunc type node (line 32) | type node struct function newStaticNode (line 47) | func newStaticNode(path string) *node { function newRootNode (line 59) | func newRootNode(method string) *node { function newNode (line 70) | func newNode(path string) *node { function newAnyNode (line 81) | func newAnyNode() *node { function newParamNode (line 94) | func newParamNode(path string) *node { FILE: pkg/tree_router.go type HandlerBasedOnTree (line 13) | type HandlerBasedOnTree struct method ServeHTTP (line 36) | func (h *HandlerBasedOnTree) ServeHTTP(c *Context) { method findRouter (line 46) | func (h *HandlerBasedOnTree) findRouter(method, path string, c *Contex... method Route (line 72) | func (h *HandlerBasedOnTree) Route(method string, pattern string, method validatePattern (line 111) | func (h *HandlerBasedOnTree) validatePattern(pattern string) error { method findMatchChild (line 129) | func (h *HandlerBasedOnTree) findMatchChild(root *node, method createSubTree (line 149) | func (h *HandlerBasedOnTree) createSubTree(root *node, paths []string,... function NewHandlerBasedOnTree (line 24) | func NewHandlerBasedOnTree() Handler { FILE: pkg/tree_router_test.go function TestHandlerBasedOnTree_Route (line 10) | func TestHandlerBasedOnTree_Route(t *testing.T) { function TestHandlerBasedOnTree_findRouter (line 107) | func TestHandlerBasedOnTree_findRouter(t *testing.T) { function handlerFuncEquals (line 153) | func handlerFuncEquals(hf1 handlerFunc, hf2 handlerFunc) bool { FILE: pkg/v1/context.go type Context (line 9) | type Context struct method ReadJson (line 14) | func (c *Context) ReadJson(data interface{}) error { method OkJson (line 21) | func (c *Context) OkJson(data interface{}) error { method SystemErrJson (line 26) | func (c *Context) SystemErrJson(data interface{}) error { method BadRequestJson (line 31) | func (c *Context) BadRequestJson(data interface{}) error { method WriteJson (line 36) | func (c *Context) WriteJson(status int, data interface{}) error { function NewContext (line 49) | func NewContext(w http.ResponseWriter, r *http.Request) *Context { FILE: pkg/v1/filter.go type FilterBuilder (line 8) | type FilterBuilder type Filter (line 10) | type Filter function MetricFilterBuilder (line 12) | func MetricFilterBuilder(next Filter) Filter { FILE: pkg/v1/handler.go type Handler (line 3) | type Handler interface type handlerFunc (line 8) | type handlerFunc FILE: pkg/v1/map_router.go type HandlerBasedOnMap (line 14) | type HandlerBasedOnMap struct method ServeHTTP (line 18) | func (h *HandlerBasedOnMap) ServeHTTP(c *Context) { method Route (line 31) | func (h *HandlerBasedOnMap) Route(method string, pattern string, method key (line 37) | func (h *HandlerBasedOnMap) key(method string, function NewHandlerBasedOnMap (line 42) | func NewHandlerBasedOnMap() *HandlerBasedOnMap { FILE: pkg/v1/server.go type Routable (line 8) | type Routable interface type Server (line 14) | type Server interface type sdkHttpServer (line 21) | type sdkHttpServer struct method Route (line 28) | func (s *sdkHttpServer) Route(method string, pattern string, method Start (line 33) | func (s *sdkHttpServer) Start(address string) error { function NewSdkHttpServer (line 42) | func NewSdkHttpServer(name string, builders ...FilterBuilder) Server { FILE: pkg/v1/tree_router.go type HandlerBasedOnTree (line 8) | type HandlerBasedOnTree struct method ServeHTTP (line 21) | func (h *HandlerBasedOnTree) ServeHTTP(c *Context) { method findRouter (line 60) | func (h *HandlerBasedOnTree) findRouter(path string) (handlerFunc, boo... method Route (line 83) | func (h *HandlerBasedOnTree) Route(method string, pattern string, method findMatchChild (line 109) | func (h *HandlerBasedOnTree) findMatchChild(root *node, path string) (... method createSubTree (line 118) | func (h *HandlerBasedOnTree) createSubTree(root *node, paths []string,... function NewHandlerBasedOnTree (line 13) | func NewHandlerBasedOnTree() Handler { type node (line 128) | type node struct function newNode (line 137) | func newNode(path string) *node { FILE: pkg/v1/tree_router_test.go function TestHandlerBasedOnTree_Route (line 9) | func TestHandlerBasedOnTree_Route(t *testing.T) { function TestHandlerBasedOnTree_findRouter (line 78) | func TestHandlerBasedOnTree_findRouter(t *testing.T) { FILE: pkg/v2/context.go type Context (line 9) | type Context struct method ReadJson (line 14) | func (c *Context) ReadJson(data interface{}) error { method OkJson (line 21) | func (c *Context) OkJson(data interface{}) error { method SystemErrJson (line 26) | func (c *Context) SystemErrJson(data interface{}) error { method BadRequestJson (line 31) | func (c *Context) BadRequestJson(data interface{}) error { method WriteJson (line 36) | func (c *Context) WriteJson(status int, data interface{}) error { function NewContext (line 49) | func NewContext(w http.ResponseWriter, r *http.Request) *Context { FILE: pkg/v2/filter.go type FilterBuilder (line 8) | type FilterBuilder type Filter (line 10) | type Filter function MetricFilterBuilder (line 12) | func MetricFilterBuilder(next Filter) Filter { FILE: pkg/v2/handler.go type Handler (line 3) | type Handler interface type handlerFunc (line 8) | type handlerFunc FILE: pkg/v2/map_router.go type HandlerBasedOnMap (line 14) | type HandlerBasedOnMap struct method ServeHTTP (line 18) | func (h *HandlerBasedOnMap) ServeHTTP(c *Context) { method Route (line 31) | func (h *HandlerBasedOnMap) Route(method string, pattern string, method key (line 38) | func (h *HandlerBasedOnMap) key(method string, function NewHandlerBasedOnMap (line 43) | func NewHandlerBasedOnMap() *HandlerBasedOnMap { FILE: pkg/v2/server.go type Routable (line 8) | type Routable interface type Server (line 14) | type Server interface type sdkHttpServer (line 21) | type sdkHttpServer struct method Route (line 28) | func (s *sdkHttpServer) Route(method string, pattern string, method Start (line 33) | func (s *sdkHttpServer) Start(address string) error { method ServeHTTP (line 37) | func (s *sdkHttpServer) ServeHTTP(writer http.ResponseWriter, request ... function NewSdkHttpServer (line 42) | func NewSdkHttpServer(name string, builders ...FilterBuilder) Server { FILE: pkg/v2/tree_router.go type HandlerBasedOnTree (line 11) | type HandlerBasedOnTree struct method ServeHTTP (line 27) | func (h *HandlerBasedOnTree) ServeHTTP(c *Context) { method findRouter (line 66) | func (h *HandlerBasedOnTree) findRouter(path string) (handlerFunc, boo... method Route (line 89) | func (h *HandlerBasedOnTree) Route(method string, pattern string, method validatePattern (line 123) | func (h *HandlerBasedOnTree) validatePattern(pattern string) error { method findMatchChild (line 141) | func (h *HandlerBasedOnTree) findMatchChild(root *node, path string) (... method createSubTree (line 158) | func (h *HandlerBasedOnTree) createSubTree(root *node, paths []string,... function NewHandlerBasedOnTree (line 17) | func NewHandlerBasedOnTree() Handler { type node (line 168) | type node struct function newNode (line 177) | func newNode(path string) *node { FILE: pkg/v2/tree_router_test.go function TestHandlerBasedOnTree_Route (line 10) | func TestHandlerBasedOnTree_Route(t *testing.T) { function TestHandlerBasedOnTree_findRouter (line 93) | func TestHandlerBasedOnTree_findRouter(t *testing.T) { function handlerFuncEquals (line 132) | func handlerFuncEquals(hf1 handlerFunc, hf2 handlerFunc) bool { FILE: pkg/v3/context.go type Context (line 9) | type Context struct method ReadJson (line 15) | func (c *Context) ReadJson(data interface{}) error { method OkJson (line 22) | func (c *Context) OkJson(data interface{}) error { method SystemErrJson (line 27) | func (c *Context) SystemErrJson(data interface{}) error { method BadRequestJson (line 32) | func (c *Context) BadRequestJson(data interface{}) error { method WriteJson (line 37) | func (c *Context) WriteJson(status int, data interface{}) error { function NewContext (line 50) | func NewContext(w http.ResponseWriter, r *http.Request) *Context { FILE: pkg/v3/filter.go type FilterBuilder (line 8) | type FilterBuilder type Filter (line 10) | type Filter function MetricFilterBuilder (line 12) | func MetricFilterBuilder(next Filter) Filter { FILE: pkg/v3/handler.go type Handler (line 3) | type Handler interface type handlerFunc (line 8) | type handlerFunc FILE: pkg/v3/map_router.go type HandlerBasedOnMap (line 14) | type HandlerBasedOnMap struct method ServeHTTP (line 18) | func (h *HandlerBasedOnMap) ServeHTTP(c *Context) { method Route (line 31) | func (h *HandlerBasedOnMap) Route(method string, pattern string, method key (line 38) | func (h *HandlerBasedOnMap) key(method string, function NewHandlerBasedOnMap (line 43) | func NewHandlerBasedOnMap() *HandlerBasedOnMap { FILE: pkg/v3/server.go type Routable (line 8) | type Routable interface type Server (line 14) | type Server interface type sdkHttpServer (line 21) | type sdkHttpServer struct method Route (line 28) | func (s *sdkHttpServer) Route(method string, pattern string, method Start (line 33) | func (s *sdkHttpServer) Start(address string) error { method ServeHTTP (line 37) | func (s *sdkHttpServer) ServeHTTP(writer http.ResponseWriter, request ... function NewSdkHttpServer (line 42) | func NewSdkHttpServer(name string, builders ...FilterBuilder) Server { FILE: pkg/v3/tree_node.go constant nodeTypeRoot (line 10) | nodeTypeRoot = iota constant nodeTypeAny (line 13) | nodeTypeAny constant nodeTypeParam (line 16) | nodeTypeParam constant nodeTypeReg (line 19) | nodeTypeReg constant nodeTypeStatic (line 22) | nodeTypeStatic constant any (line 25) | any = "*" type matchFunc (line 30) | type matchFunc type node (line 32) | type node struct function newStaticNode (line 47) | func newStaticNode(path string) *node { function newRootNode (line 59) | func newRootNode(method string) *node { function newNode (line 70) | func newNode(path string) *node { function newAnyNode (line 81) | func newAnyNode() *node { function newParamNode (line 94) | func newParamNode(path string) *node { FILE: pkg/v3/tree_router.go type HandlerBasedOnTree (line 13) | type HandlerBasedOnTree struct method ServeHTTP (line 36) | func (h *HandlerBasedOnTree) ServeHTTP(c *Context) { method findRouter (line 46) | func (h *HandlerBasedOnTree) findRouter(method, path string, c *Contex... method Route (line 72) | func (h *HandlerBasedOnTree) Route(method string, pattern string, method validatePattern (line 111) | func (h *HandlerBasedOnTree) validatePattern(pattern string) error { method findMatchChild (line 129) | func (h *HandlerBasedOnTree) findMatchChild(root *node, method createSubTree (line 149) | func (h *HandlerBasedOnTree) createSubTree(root *node, paths []string,... function NewHandlerBasedOnTree (line 24) | func NewHandlerBasedOnTree() Handler { FILE: pkg/v3/tree_router_test.go function TestHandlerBasedOnTree_Route (line 10) | func TestHandlerBasedOnTree_Route(t *testing.T) { function TestHandlerBasedOnTree_findRouter (line 107) | func TestHandlerBasedOnTree_findRouter(t *testing.T) { function handlerFuncEquals (line 153) | func handlerFuncEquals(hf1 handlerFunc, hf2 handlerFunc) bool {