MCPcopy Create free account
hub / github.com/MengMengCode/GetRealityDomain / String

Method String

types.go:164–175  ·  view source on GitHub ↗

String 返回HostType的字符串表示

()

Source from the content-addressed store, hash-verified

162
163// String 返回HostType的字符串表示
164func (ht HostType) String() string {
165 switch ht {
166 case HostTypeIP:
167 return "IP"
168 case HostTypeCIDR:
169 return "CIDR"
170 case HostTypeDomain:
171 return "DOMAIN"
172 default:
173 return "UNKNOWN"
174 }
175}
176
177// String 返回Host的字符串表示
178func (h Host) String() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected