Ejemplo n.º 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
}
Ejemplo n.º 2
0
func Unquote(data []byte) string { return keybase1.Unquote(data) }