Documentation
¶
Index ¶
- type Version
- func (v *Version) Major() uint32
- func (v *Version) Marshal() ([]byte, error)
- func (v *Version) MarshalJSON() ([]byte, error)
- func (v *Version) Minor() uint32
- func (v *Version) SetMajor(val uint32)
- func (v *Version) SetMinor(val uint32)
- func (v *Version) String() string
- func (v *Version) ToV2() *refs.Version
- func (v *Version) Unmarshal(data []byte) error
- func (v *Version) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Version ¶
Version represents v2-compatible version.
func Current ¶
func Current() *Version
Current returns Version instance that initialized to current SDK revision number.
func New ¶
func New() *Version
New creates and initializes blank Version.
Defaults:
- major: 0;
- minor: 0.
func (*Version) MarshalJSON ¶
MarshalJSON encodes Version to protobuf JSON format.
func (*Version) UnmarshalJSON ¶
UnmarshalJSON decodes Version from protobuf JSON format.
Click to show internal directories.
Click to hide internal directories.