MCPcopy
hub / github.com/alecthomas/kong / Option

Interface Option

options.go:16–18  ·  view source on GitHub ↗

An Option applies optional changes to the Kong application.

Source from the content-addressed store, hash-verified

14
15// An Option applies optional changes to the Kong application.
16type Option interface {
17 Apply(k *Kong) error
18}
19
20// OptionFunc is function that adheres to the Option interface.
21type OptionFunc func(k *Kong) error

Callers 3

NewFunction · 0.65
ParseMethod · 0.65
parseFlagMethod · 0.65

Implementers 4

Valuemodel.go
Contextcontext.go
optionWithErrkong_test.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…