MCPcopy Create free account
hub / github.com/google/go-cloud / ExampleDecryptDecode

Function ExampleDecryptDecode

runtimevar/example_test.go:181–191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

179}
180
181func ExampleDecryptDecode() {
182 // PRAGMA: This example is used on gocloud.dev; PRAGMA comments adjust how it is shown and can be ignored.
183 // PRAGMA: On gocloud.dev, hide lines until the next blank line.
184 var keeper *secrets.Keeper
185
186 decodeFunc := runtimevar.DecryptDecode(keeper, runtimevar.StringDecode)
187 decoder := runtimevar.NewDecoder("", decodeFunc)
188
189 // PRAGMA: On gocloud.dev, hide the rest of the function.
190 _ = decoder
191}

Callers

nothing calls this directly

Calls 2

DecryptDecodeFunction · 0.92
NewDecoderFunction · 0.92

Tested by

no test coverage detected