MCPcopy Create free account
hub / github.com/git-bug/git-bug / MarshalGQL

Method MarshalGQL

entity/id.go:62–64  ·  view source on GitHub ↗

MarshalGQL implement the Marshaler interface for gqlgen

(w io.Writer)

Source from the content-addressed store, hash-verified

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

Callers 1

ExecMethod · 0.45

Calls 2

StringMethod · 0.95
WriteMethod · 0.45

Tested by

no test coverage detected