MCPcopy Create free account
hub / github.com/cloudwan/gohan / IsTopLevel

Method IsTopLevel

schema/namespace.go:71–73  ·  view source on GitHub ↗

IsTopLevel checks whether namespace is a top-level namespace

()

Source from the content-addressed store, hash-verified

69
70// IsTopLevel checks whether namespace is a top-level namespace
71func (namespace *Namespace) IsTopLevel() bool {
72 return namespace.Parent == ""
73}

Callers 1

MapNamespacesRoutesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected