MCPcopy Index your code
hub / github.com/coder/coder / UnmarshalText

Method UnmarshalText

codersdk/allowlist.go:78–80  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

76func (t APIAllowListTarget) MarshalText() ([]byte, error) { return []byte(t.String()), nil }
77
78func (t *APIAllowListTarget) UnmarshalText(b []byte) error {
79 return t.UnmarshalJSON([]byte("\"" + string(b) + "\""))
80}

Callers 2

AppendMethod · 0.95
ProtoToNodeFunction · 0.80

Calls 1

UnmarshalJSONMethod · 0.95

Tested by

no test coverage detected