Documentation
¶
Index ¶
- type Vector
- func (v *Vector) DecodeBinary(buf []byte) error
- func (v Vector) EncodeBinary(buf []byte) (newBuf []byte, err error)
- func (v Vector) FormatFloats() string
- func (v Vector) MarshalJSON() ([]byte, error)
- func (v *Vector) Parse(s string) error
- func (v *Vector) Scan(src interface{}) (err error)
- func (v Vector) Slice() []float32
- func (v Vector) String() string
- func (v *Vector) UnmarshalJSON(data []byte) error
- func (v Vector) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vector ¶
type Vector struct {
// contains filtered or unexported fields
}
Vector is a wrapper for []float32 to implement sql.Scanner and driver.Valuer.
func (*Vector) DecodeBinary ¶
DecodeBinary decodes a binary representation of a vector.
func (Vector) EncodeBinary ¶
EncodeBinary encodes a binary representation of the vector.
func (Vector) FormatFloats ¶
func (Vector) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Vector) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.