Debian Codegraph @

gotypes/examples_test.go

raw symbols SCIP
1 package gotypes_test
2
3 import (
4 "fmt"
5
6 "github.com/mmcloughlin/avo/gotypes"
7 )
8
9 func ExampleParseSignature() {
10 s, err := gotypes.ParseSignature("func(s string, n int) string")
11 fmt.Println(s)
12 fmt.Println(err)
13 // Output:
14 // (s string, n int) string
15 // <nil>
16 }