MCPcopy
hub / github.com/caddyserver/caddy / Name

Method Name

modules.go:112–118  ·  view source on GitHub ↗

Name returns the Name (last element) of a module ID.

()

Source from the content-addressed store, hash-verified

110
111// Name returns the Name (last element) of a module ID.
112func (id ModuleID) Name() string {
113 if id == "" {
114 return ""
115 }
116 parts := strings.Split(string(id), ".")
117 return parts[len(parts)-1]
118}
119
120func (mi ModuleInfo) String() string { return string(mi.ID) }
121

Callers 1

GetModuleNameFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected