MCPcopy Create free account
hub / github.com/kataras/iris / Encode

Method Encode

context/context.go:5756–5756  ·  view source on GitHub ↗

Encode should encode the cookie value. Should accept the cookie's name as its first argument and as second argument the cookie value ptr. Should return an encoded value or an empty one if encode operation failed. Should return an error if encode operation failed. Note: Errors are not printed, so yo

(cookieName string, cookieValue interface{})

Source from the content-addressed store, hash-verified

5754 //
5755 // See `Decode` too.
5756 Encode(cookieName string, cookieValue interface{}) (string, error)
5757 // Decode should decode the cookie value.
5758 // Should accept the cookie's name as its first argument,
5759 // as second argument the encoded cookie value and as third argument the decoded value ptr.

Callers 15

MarshalMethod · 0.80
createThumbnailMethod · 0.80
JSONFunction · 0.80
FormFunction · 0.80
mainFunction · 0.80
TestJSONLoggerFunction · 0.80
postExampleFunction · 0.80
applyIrisGlobalPatchesFunction · 0.80
setLangWithoutContextMethod · 0.80
GobEncodeFunction · 0.80
GobEncodeEntryFunction · 0.80
MarshalXMLMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestJSONLoggerFunction · 0.64
sendJSONFunction · 0.64