Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FloatOrString ¶
func FromFloat ¶
func FromFloat(val float64) *FloatOrString
func FromString ¶
func FromString(val string) *FloatOrString
func Parse ¶
func Parse(val string) *FloatOrString
func (FloatOrString) MarshalJSON ¶
func (fs FloatOrString) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface.
func (*FloatOrString) String ¶
func (fs *FloatOrString) String() string
String returns the string value, or the float value formatted as a string.
func (*FloatOrString) UnmarshalJSON ¶
func (fs *FloatOrString) UnmarshalJSON(value []byte) error
UnmarshalJSON implements the json.Unmarshaller interface.
Click to show internal directories.
Click to hide internal directories.