MCPcopy Create free account
hub / github.com/bufbuild/buf / WithSingleCustomOptionKey

Function WithSingleCustomOptionKey

private/buf/buffetch/internal/internal.go:707–711  ·  view source on GitHub ↗

WithSingleCustomOptionKey adds a custom option key that is recognized..

(key string)

Source from the content-addressed store, hash-verified

705
706// WithSingleCustomOptionKey adds a custom option key that is recognized..
707func WithSingleCustomOptionKey(key string) SingleFormatOption {
708 return func(singleFormatInfo *singleFormatInfo) {
709 singleFormatInfo.customOptionKeys[key] = struct{}{}
710 }
711}
712
713// ArchiveFormatOption is a archive format option.
714type ArchiveFormatOption func(*archiveFormatInfo)

Callers 2

newRefParserFunction · 0.92
newMessageRefParserFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…