MCPcopy Create free account
hub / github.com/facebook/time / String

Method String

timestamp/timestamp.go:79–85  ·  view source on GitHub ↗

String timestamp to string

()

Source from the content-addressed store, hash-verified

77func (t Timestamp) MarshalText() ([]byte, error) {
78 _, ok := timestampToString[t]
79 if ok {
80 return []byte(t.String()), nil
81 }
82 return []byte(Unsupported), fmt.Errorf("unknown timestamp type %q", Unsupported)
83}
84
85// String timestamp to string
86func (t Timestamp) String() string {
87 v, ok := timestampToString[t]
88 if ok {

Callers 9

MarshalTextMethod · 0.95
TestSockaddrToIPFunction · 0.45
TestTimestampMarshalTextFunction · 0.45
TestSockaddrToAddrIPv4Function · 0.45
TestSockaddrToAddrIPv6Function · 0.45

Calls

no outgoing calls

Tested by 8

TestSockaddrToIPFunction · 0.36
TestTimestampMarshalTextFunction · 0.36
TestSockaddrToAddrIPv4Function · 0.36
TestSockaddrToAddrIPv6Function · 0.36