14 lines
347 B
Go
14 lines
347 B
Go
package macaroon
|
|
|
|
var (
|
|
AddThirdPartyCaveatWithRand = (*Macaroon).addThirdPartyCaveatWithRand
|
|
)
|
|
|
|
type MacaroonJSONV2 macaroonJSONV2
|
|
|
|
// SetVersion sets the version field of m to v;
|
|
// usually so that we can compare it for deep equality with
|
|
// another differently unmarshaled macaroon.
|
|
func (m *Macaroon) SetVersion(v Version) {
|
|
m.version = v
|
|
}
|