Documentation ¶
Index ¶
- Variables
- func Format(i *big.Int, precision int) string
- type Link
- func (l *Link) Add(x, y *Link) *Link
- func (l *Link) Cmp(y *Link) int
- func (l *Link) IsZero() bool
- func (l *Link) Link() string
- func (l Link) MarshalJSON() ([]byte, error)
- func (l *Link) MarshalText() ([]byte, error)
- func (l *Link) Scan(value interface{}) error
- func (l *Link) Set(x *Link) *Link
- func (l *Link) SetInt64(w int64) *Link
- func (l *Link) SetString(s string, base int) (*Link, bool)
- func (l *Link) String() string
- func (*Link) Symbol() string
- func (l *Link) Text(base int) string
- func (l *Link) ToInt() *big.Int
- func (l *Link) UnmarshalJSON(data []byte) error
- func (l *Link) UnmarshalText(text []byte) error
- func (l Link) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoQuotesForCurrency = errors.New("cannot unmarshal json.Number into currency")
Functions ¶
Types ¶
type Link ¶
Link contains a field to represent the smallest units of LINK
func NewLinkFromJuels ¶
NewLinkFromJuels returns a new struct to represent LINK from it's smallest unit
func (Link) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Link) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*Link) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
func (*Link) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.
Click to show internal directories.
Click to hide internal directories.