Documentation
¶
Index ¶
- Variables
- func Validate(s string) error
- type Fixture
- type ID
- func (id ID) Bytes() []byte
- func (id ID) Index() ID
- func (id ID) MarshalGQL(w io.Writer)
- func (id ID) MarshalJSON() (text []byte, err error)
- func (id ID) MarshalText() (text []byte, err error)
- func (id *ID) Scan(src interface{}) error
- func (id ID) String() string
- func (id *ID) UnmarshalGQL(v interface{}) error
- func (id *ID) UnmarshalJSON(b []byte) error
- func (id *ID) UnmarshalText(text []byte) (err error)
- func (id ID) Valid() bool
- func (id ID) Value() (driver.Value, error)
- type IDs
- type Tuple
Constants ¶
This section is empty.
Variables ¶
View Source
var Nil = ID("")
Functions ¶
Types ¶
type Fixture ¶
type Fixture struct {
// contains filtered or unexported fields
}
func NewFixture ¶
func NewFixture() *Fixture
type ID ¶
type ID string
func (ID) MarshalJSON ¶
MarshalJSON returns the byte representation of the global identifier enclosed in double quotes to form valid JSON.
func (ID) MarshalText ¶
func (ID) String ¶
Returns canonical string representation of the global identifier. Example: 123e4567-e89b-12d3-a456-426655440000.
func (*ID) UnmarshalGQL ¶
func (*ID) UnmarshalJSON ¶
UnmarshalJSON is based on the underlying UnmarshalText implementation.
func (*ID) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.