MCPcopy Create free account
hub / github.com/segmentio/encoding / parseRewriteTemplateInt32

Function parseRewriteTemplateInt32

proto/rewrite.go:216–223  ·  view source on GitHub ↗
(t Type, f FieldNumber, j json.RawMessage)

Source from the content-addressed store, hash-verified

214}
215
216func parseRewriteTemplateInt32(t Type, f FieldNumber, j json.RawMessage) (Rewriter, error) {
217 var v int32
218 err := json.Unmarshal(j, &v)
219 if v == 0 || err != nil {
220 return nil, err
221 }
222 return f.Int32(v), nil
223}
224
225func parseRewriteTemplateInt64(t Type, f FieldNumber, j json.RawMessage) (Rewriter, error) {
226 var v int64

Callers 1

parseRewriteTemplateFunction · 0.85

Calls 2

UnmarshalFunction · 0.92
Int32Method · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…