MCPcopy
hub / github.com/davyxu/cellnet / FullName

Method FullName

meta.go:37–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37func (self *MessageMeta) FullName() string {
38
39 if self == nil {
40 return ""
41 }
42
43 var sb strings.Builder
44 sb.WriteString(path.Base(self.Type.PkgPath()))
45 sb.WriteString(".")
46 sb.WriteString(self.Type.Name())
47
48 return sb.String()
49}
50
51// 创建meta类型的实例
52func (self *MessageMeta) NewType() interface{} {

Callers 1

RegisterMessageMetaFunction · 0.45

Calls 2

NameMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected