github.com/circl-dev/go-swagger@v0.31.0/examples/external-types/go-ext/my_type.go (about) 1 package ext 2 3 import ( 4 "context" 5 6 "github.com/go-openapi/strfmt" 7 ) 8 9 type MyExtType struct {} 10 11 func (MyExtType) Validate(strfmt.Registry) error { return nil } 12 func (MyExtType) ContextValidate(context.Context, strfmt.Registry) error { return nil }