func encodeMacaroonSlice(ms macaroon.Slice) (string, error) {
	data, err := json.Marshal(ms)
	if err != nil {
		return "", errors.Trace(err)
	}
	return base64.StdEncoding.EncodeToString(data), nil
}
// encodeMacaroonSlice base64-JSON-encodes a slice of macaroons.
encodeMacaroonSlice base64-JSON-encodes a slice of macaroons.
// encodeMacaroonSlice base64 - JSON - encodes a slice of macaroons .
func encodeMacaroonSlice(ms macaroon.Slice) (string, error) {
	data, err := json.Marshal(ms)
	if err != nil {
		return "", errors.Trace(err)
	}
	return base64.StdEncoding.EncodeToString(data), nil
}
func encodeMacaroonSlice ( ms macaroon . Slice ) ( string , error ) { data , err := json . Marshal ( ms ) if err != nil { return " " , errors . Trace ( err ) } return base64 . StdEncoding . EncodeToString ( data ) , nil }
encodeMacaroonSlice base64-JSON-encodes a slice of macaroons.
encodeMacaroonSlice base64 - JSON - encodes a slice of macaroons .