INNER CODE UNIT · Go

func

GoAdminGroup/go-admin · context/trie.go:24

func (n *node) hasMethod(method string) int {
	for k, m := range n.method {
		if m == method {
			return k
		}
	}
	return -1
}

func (n *node) addMethodAndHandler(method string, handler []Handler) {
	n.method = append(n.method, method)
	n.handle = append(n.handle, handler)
}

func (n *node) addChild(child *node) {
	n.children = append(n.children, child)
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…