Documentation
¶
Index ¶
- func BeginGormTx() *gorm.DB
- func CommitGormTx(tx *gorm.DB) error
- func InitGorm(host string, port int64, user, password, db_name string) (err error)
- func NewBigIntFromUint64(i uint64) *big.Int
- func NewGormSession() *gorm.DB
- func ReadFileBytes(filePath string) ([]byte, error)
- func ReadFileHash(data []byte) (string, error)
- func ValidateJsonUnmarshal(data []byte, v any) error
- func ValidateStruct(v any) error
- type Marshaler
- type Uint128
- func (i Uint128) Big() *big.Int
- func (i *Uint128) Cmp(j *Uint128) int
- func (i Uint128) MarshalBCS() ([]byte, error)
- func (i Uint128) MarshalJSON() ([]byte, error)
- func (i *Uint128) SetBigInt(bigI *big.Int) error
- func (u Uint128) String() string
- func (i *Uint128) UnmarshalJSON(data []byte) error
- func (i *Uint128) UnmarshalText(data []byte) error
- type Uint256
- func (u Uint256) Big() *big.Int
- func (i *Uint256) Cmp(j *Uint256) int
- func (u Uint256) MarshalBCS() ([]byte, error)
- func (u Uint256) MarshalJSON() ([]byte, error)
- func (u *Uint256) SetBigInt(bigI *big.Int) error
- func (u Uint256) String() string
- func (u *Uint256) UnmarshalJSON(data []byte) error
- func (u *Uint256) UnmarshalText(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeginGormTx ¶
func CommitGormTx ¶
func NewBigIntFromUint64 ¶ added in v0.100.13
func NewGormSession ¶
func ReadFileBytes ¶
func ReadFileHash ¶
func ValidateJsonUnmarshal ¶
func ValidateStruct ¶
Types ¶
type Uint128 ¶ added in v0.100.13
type Uint128 struct {
// contains filtered or unexported fields
}
Powered By https://github.com/fardream/go-bcs.git Uint128 is like `u128` in move.
func NewUint128 ¶ added in v0.100.13
func NewUint128FromBigInt ¶ added in v0.100.13
func NewUint128FromUint64 ¶ added in v0.100.13
func (Uint128) MarshalBCS ¶ added in v0.100.13
func (Uint128) MarshalJSON ¶ added in v0.100.13
func (*Uint128) UnmarshalJSON ¶ added in v0.100.13
func (*Uint128) UnmarshalText ¶ added in v0.100.13
type Uint256 ¶ added in v0.100.15
type Uint256 struct {
// contains filtered or unexported fields
}
Uint256 is like `u256` in move.
func NewUint256 ¶ added in v0.100.15
func NewUint256FromBigInt ¶ added in v0.100.15
func (Uint256) MarshalBCS ¶ added in v0.100.15
func (Uint256) MarshalJSON ¶ added in v0.100.15
func (*Uint256) UnmarshalJSON ¶ added in v0.100.15
func (*Uint256) UnmarshalText ¶ added in v0.100.15
Source Files
¶
Click to show internal directories.
Click to hide internal directories.