MCPcopy Create free account
hub / github.com/modelcontextprotocol/go-sdk / printSection

Function printSection

examples/client/listfeatures/main.go:77–86  ·  view source on GitHub ↗
(name string, features iter.Seq2[T, error], featName func(T) string)

Source from the content-addressed store, hash-verified

75}
76
77func printSection[T any](name string, features iter.Seq2[T, error], featName func(T) string) {
78 fmt.Printf("%s:\n", name)
79 for feat, err := range features {
80 if err != nil {
81 log.Fatal(err)
82 }
83 fmt.Printf("\t%s\n", featName(feat))
84 }
85 fmt.Println()
86}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…