MCPcopy
hub / github.com/davyxu/cellnet / Encode

Method Encode

codec/httpform/form.go:66–69  ·  view source on GitHub ↗
(msgObj interface{}, ctx cellnet.ContextSet)

Source from the content-addressed store, hash-verified

64}
65
66func (self *httpFormCodec) Encode(msgObj interface{}, ctx cellnet.ContextSet) (data interface{}, err error) {
67
68 return strings.NewReader(structToUrlValues(msgObj).Encode()), err
69}
70
71func (self *httpFormCodec) Decode(data interface{}, msgObj interface{}) error {
72

Callers

nothing calls this directly

Calls 2

structToUrlValuesFunction · 0.85
EncodeMethod · 0.65

Tested by

no test coverage detected