forked from go-swagger/go-swagger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
my_type.go
42 lines (30 loc) · 1.3 KB
/
my_type.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package fred
import (
"context"
"io"
"github.com/go-openapi/strfmt"
)
// MyAlternateType ...
type MyAlternateType string
// Validate MyAlternateType
func (MyAlternateType) Validate(strfmt.Registry) error { return nil }
func (MyAlternateType) ContextValidate(context.Context, strfmt.Registry) error { return nil }
// MyAlternateInteger ...
type MyAlternateInteger int
// Validate MyAlternateInteger
func (MyAlternateInteger) Validate(strfmt.Registry) error { return nil }
func (MyAlternateInteger) ContextValidate(context.Context, strfmt.Registry) error { return nil }
// MyAlternateString ...
type MyAlternateString string
// Validate MyAlternateString
func (MyAlternateString) Validate(strfmt.Registry) error { return nil }
func (MyAlternateString) ContextValidate(context.Context, strfmt.Registry) error { return nil }
// MyAlternateOtherType ...
type MyAlternateOtherType struct{}
// Validate MyAlternateOtherType
func (MyAlternateOtherType) Validate(strfmt.Registry) error { return nil }
func (MyAlternateOtherType) ContextValidate(context.Context, strfmt.Registry) error { return nil }
// MyAlternateStreamer ...
type MyAlternateStreamer io.Reader
// MyAlternateInterface ...
type MyAlternateInterface interface{}