MCPcopy
hub / github.com/tinylib/msgp / FromBase

Method FromBase

gen/elem.go:754–759  ·  view source on GitHub ↗

FromBase, used if Convert==true, is used as {{Varname}} = {{FromBase}}(tmp)

()

Source from the content-addressed store, hash-verified

752
753// FromBase, used if Convert==true, is used as {{Varname}} = {{FromBase}}(tmp)
754func (s *BaseElem) FromBase() string {
755 if s.ShimFromBase != "" {
756 return s.ShimFromBase
757 }
758 return s.TypeName()
759}
760
761// BaseName returns the string form of the
762// base type (e.g. Float64, Ident, etc)

Callers 3

mapAssignMethod · 0.80
gBaseMethod · 0.80
gBaseMethod · 0.80

Calls 1

TypeNameMethod · 0.95

Tested by

no test coverage detected