MCPcopy Create free account
hub / github.com/cloud-native-go/examples / flagsFunc

Function flagsFunc

ch10/cobra/flags.go:36–41  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

34}
35
36func flagsFunc(cmd *cobra.Command, args []string) {
37 fmt.Println("string:", strp)
38 fmt.Println("integer:", intp)
39 fmt.Println("boolean:", boolp)
40 fmt.Println("args:", args)
41}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected