const asc … const desc … type depthPatternHolder … func newDepthPatternHolder(order int) depthPatternHolder { … } func (h *depthPatternHolder) add(pattern string) { … } func (h depthPatternHolder) match(path string, isDir bool) bool { … } type depthPatterns … func (p *depthPatterns) set(depth int, pattern string) { … } func (p depthPatterns) get(depth int) (initialPatternHolder, bool) { … } func (p depthPatterns) size() int { … }