Files
avo/gotypes/examples_test.go

17 lines
268 B
Go
Raw Normal View History

2019-01-04 20:38:21 -08:00
package gotypes_test
import (
"fmt"
2026-03-06 20:14:02 +00:00
"sources.truenas.cloud/code/avo/gotypes"
2019-01-04 20:38:21 -08:00
)
func ExampleParseSignature() {
s, err := gotypes.ParseSignature("func(s string, n int) string")
fmt.Println(s)
fmt.Println(err)
// Output:
// (s string, n int) string
// <nil>
}