MarshalGQL implement the Marshaler interface for gqlgen
(w io.Writer)
| 60 | |
| 61 | // MarshalGQL implement the Marshaler interface for gqlgen |
| 62 | func (i Id) MarshalGQL(w io.Writer) { |
| 63 | _, _ = w.Write([]byte(`"` + i.String() + `"`)) |
| 64 | } |
| 65 | |
| 66 | // Validate tell if the Id is valid |
| 67 | func (i Id) Validate() error { |