Documentation ¶
Index ¶
- Constants
- func IsNullJSON(in []byte) bool
- func IsStringJSON(in []byte) bool
- func RemoveQuotesJSON(in []byte) []byte
- type Bool
- type String
- func (s String) Int() (int, error)
- func (s String) IntOnly() int
- func (s String) MarshalJSON() (res []byte, err error)
- func (s *String) Scan(value interface{}) (err error)
- func (s String) String() string
- func (s String) Uint() (uint64, error)
- func (s String) UintOnly() uint64
- func (s *String) UnmarshalJSON(payload []byte) (err error)
- func (s String) Value() (res driver.Value, err error)
Constants ¶
View Source
const ( DefaultBase = 10 DefaultBitSize = 64 )
List of default values used for this package.
Variables ¶
This section is empty.
Functions ¶
func IsNullJSON ¶ added in v1.2.0
func IsStringJSON ¶ added in v1.2.0
func RemoveQuotesJSON ¶ added in v1.2.0
Types ¶
type Bool ¶
type Bool bool
Bool is a custom defined type for bool.
func (Bool) MarshalJSON ¶
MarshalJSON implements the MarshalJSON interface.
func (*Bool) UnmarshalJSON ¶
UnmarshalJSON implementing UnmarshalJSON interface.
type String ¶ added in v1.3.0
type String string
String represents the string type that can be converted to any type.
func (String) Int ¶ added in v1.3.0
Int returns the int value of the string and the error of parsing.
func (String) MarshalJSON ¶ added in v1.3.0
MarshalJSON implements the json.Marshaler interface.
func (String) Uint ¶ added in v1.3.0
Uint returns the uint value of the string and the error of parsing.
func (*String) UnmarshalJSON ¶ added in v1.3.0
UnmarshalJSON implements the json.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.