Documentation ¶
Index ¶
- Constants
- Variables
- type ContactInfo
- type UID
- func (u UID) IntUin() int64
- func (u UID) IsEmpty() bool
- func (u UID) IsGroup() bool
- func (u UID) IsUser() bool
- func (u UID) MarshalText() ([]byte, error)
- func (u *UID) Scan(src interface{}) error
- func (u UID) String() string
- func (u *UID) UnmarshalText(val []byte) error
- func (u UID) Value() (driver.Value, error)
Constants ¶
View Source
const ( User = "u" Group = "g" )
View Source
const SEP_UID = "\u0001"
Variables ¶
View Source
var (
EmptyUID = UID{}
)
Some UIDs that are contacted often.
Functions ¶
This section is empty.
Types ¶
type ContactInfo ¶
func NewContact ¶
func NewContact(uin int64, name, remark string) *ContactInfo
type UID ¶
func NewGroupUID ¶
func NewIntGroupUID ¶
func NewIntUserUID ¶
func NewUserUID ¶
func (UID) MarshalText ¶
MarshalText implements encoding.TextMarshaler for UID
func (*UID) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler for UID
Click to show internal directories.
Click to hide internal directories.