MCPcopy
hub / github.com/gin-gonic/gin / UnmarshalParam

Method UnmarshalParam

binding/form_mapping_test.go:667–675  ·  view source on GitHub ↗
(param string)

Source from the content-addressed store, hash-verified

665type objectID [12]byte
666
667func (o *objectID) UnmarshalParam(param string) error {
668 oid, err := convertTo(param)
669 if err != nil {
670 return err
671 }
672
673 *o = oid
674 return nil
675}
676
677func convertTo(s string) (objectID, error) {
678 var nilObjectID objectID

Callers

nothing calls this directly

Calls 1

convertToFunction · 0.85

Tested by

no test coverage detected