func (k *Key) UnmarshalText(text []byte) error {
	data, err := macaroon.Base64Decode(text)
	if err != nil {
		return errgo.Notef(err, "cannot decode base64 key")
	}
	if len(data) != len(k) {
		return errgo.Newf("wrong length for key, got %d want %d", len(data), len(k))
	}
	copy(k[:], data)
	return nil
}
// UnmarshalText implements encoding.TextUnmarshaler.UnmarshalText.
UnmarshalText implements encoding.TextUnmarshaler.UnmarshalText.
// UnmarshalText implements encoding . TextUnmarshaler . UnmarshalText .
func (k *Key) UnmarshalText(text []byte) error {
	data, err := macaroon.Base64Decode(text)
	if err != nil {
		return errgo.Notef(err, "cannot decode base64 key")
	}
	if len(data) != len(k) {
		return errgo.Newf("wrong length for key, got %d want %d", len(data), len(k))
	}
	copy(k[:], data)
	return nil
}
func ( k * Key ) UnmarshalText ( text [ ] byte ) error { data , err := macaroon . Base64Decode ( text ) if err != nil { return errgo . Notef ( err , " " ) } if len ( data ) != len ( k ) { return errgo . Newf ( " " , len ( data ) , len ( k ) ) } copy ( k [ : ] , data ) return nil }
UnmarshalText implements encoding.TextUnmarshaler.UnmarshalText.
UnmarshalText implements encoding . TextUnmarshaler . UnmarshalText .