Discover Packages
github.com/AlexandreHosek/xid
b
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Jan 30, 2023
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Bytes storage
This subpackage is there to allow storage of XIDs in a binary format in, for example, a database.
It allows some data size optimisation as the 12 bytes will be smaller to store than a string.
Expand ▾
Collapse ▴
Documentation
¶
type ID struct {
xid .ID
}
func (id *ID ) Scan(value interface{}) (err error )
Scan implements the sql.Scanner interface.
Value implements the driver.Valuer interface.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.