示例#1
0
func (l *LinkID) UnmarshalJSON(b []byte) error {
	lid, err := LinkIDFromHex(keybase1.Unquote(b))
	if err != nil {
		return err
	}
	*l = make([]byte, len(lid))
	copy((*l)[:], lid[:])
	return nil
}
示例#2
0
文件: util.go 项目: jacobhaven/client
func Unquote(data []byte) string { return keybase1.Unquote(data) }