String timestamp to string
()
| 77 | func (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 |
| 86 | func (t Timestamp) String() string { |
| 87 | v, ok := timestampToString[t] |
| 88 | if ok { |
no outgoing calls