Documentation ¶
Index ¶
- type Boolean
- type Key
- func (k *Key) Clone() *Key
- func (k Key) DataType(t sqldriver.Info, sf reflext.StructFielder) columns.Column
- func (k Key) Encode() string
- func (k *Key) Equal(o *Key) bool
- func (k Key) GoString() string
- func (k *Key) GobDecode(buf []byte) error
- func (k Key) GobEncode() ([]byte, error)
- func (k *Key) ID() string
- func (k *Key) Incomplete() bool
- func (k Key) MarshalBSONValue() (bsontype.Type, []byte, error)
- func (k Key) MarshalBinary() ([]byte, error)
- func (k Key) MarshalGQL(w io.Writer)
- func (k Key) MarshalJSON() ([]byte, error)
- func (k Key) MarshalJSONB() ([]byte, error)
- func (k Key) MarshalText() ([]byte, error)
- func (k *Key) Root() *Key
- func (k *Key) Scan(it interface{}) error
- func (k Key) String() string
- func (k *Key) UnmarshalBSONValue(t bsontype.Type, b []byte) error
- func (k *Key) UnmarshalBinary(b []byte) error
- func (k *Key) UnmarshalGQL(it interface{}) error
- func (k *Key) UnmarshalJSON(b []byte) error
- func (k *Key) UnmarshalJSONB(b []byte) error
- func (k *Key) UnmarshalText(b []byte) error
- func (k Key) Value() (driver.Value, error)
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
Key :
func IDKey ¶
IDKey creates a new key with an ID. The supplied kind cannot be empty. The supplied parent must either be a complete key or nil. The namespace of the new key is empty.
func NameKey ¶
NameKey creates a new key with a name. The supplied kind cannot be empty. The supplied parent must either be a complete key or nil. The namespace of the new key is empty.
func (Key) Encode ¶
Encode returns an opaque representation of the key suitable for use in HTML and URLs. This is compatible with the Python and Java runtimes.
func (*Key) Equal ¶
Equal reports whether two keys are equal. Two keys are equal if they are both nil, or if their kinds, IDs, names, namespaces and parents are equal.
func (Key) GoString ¶
GoString returns a string representation the raw string of key (without encoding).
func (Key) GobEncode ¶
GobEncode marshals the key into a sequence of bytes using an encoding/gob.Encoder.
func (*Key) Incomplete ¶
Incomplete : is a safe method to check key is nil or empty
func (Key) MarshalBSONValue ¶
MarshalBSONValue :
func (Key) MarshalGQL ¶
func (*Key) UnmarshalBSONValue ¶
UnmarshalBSONValue :