Skip to content

Commit 3501bd5

Browse files
syanukovStan
and
Stan
authored
docs(ctx): Correct a code example for kong.Ctx.SetShared() (#122)
Co-authored-by: Stan <stanislau.yanukou@syncier.com>
1 parent ca4b404 commit 3501bd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ctx/ctx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Usage:
1616
1717
// plugin A PluginA.go
1818
func (conf Config) Access(kong *pdk.PDK) {
19-
err := kong.Ctx.SetShared("hello world")
19+
err := kong.Ctx.SetShared("foo", "hello world")
2020
if err != nil {
2121
kong.Log.Err(err)
2222
return

0 commit comments

Comments
 (0)