MCPcopy Create free account
hub / github.com/alecthomas/kong / Decode

Method Decode

mapper.go:145–147  ·  view source on GitHub ↗
(ctx *DecodeContext, target reflect.Value)

Source from the content-addressed store, hash-verified

143type MapperFunc func(ctx *DecodeContext, target reflect.Value) error
144
145func (m MapperFunc) Decode(ctx *DecodeContext, target reflect.Value) error { //nolint: revive
146 return m(ctx, target)
147}
148
149// A Registry contains a set of mappers and supporting lookup methods.
150type Registry struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected