Documentation
¶
Index ¶
- Constants
- Variables
- func AsFloat64(v interface{}) float64
- func AsInt32(v interface{}) int32
- func AsInt64(v interface{}) int64
- func AsString(v interface{}) string
- func AsTime(v interface{}) time.Time
- func Mmap(f *os.File) ([]byte, error)
- func MmapFile(fn string) ([]byte, error)
- func NumbersFromStrings(s *[]string) *[]godror.Number
- func ParseTime(t *time.Time, s string) error
- func ReadAll(r io.Reader, threshold int) ([]byte, error)
- func ReadAllString(r io.Reader, threshold int) (string, error)
- type DateTime
- func (dt *DateTime) IsZero() (zero bool)
- func (dt *DateTime) Marshal() (dAtA []byte, err error)
- func (dt DateTime) MarshalJSON() ([]byte, error)
- func (dt DateTime) MarshalText() ([]byte, error)
- func (dt *DateTime) MarshalTo(dAtA []byte) (int, error)
- func (dt DateTime) MarshalXML(enc *xml.Encoder, start xml.StartElement) error
- func (dt *DateTime) ProtoMessage()
- func (dt *DateTime) ProtoSize() (n int)
- func (dt *DateTime) Reset()
- func (dt *DateTime) Size() (n int)
- func (dt *DateTime) String() string
- func (dt *DateTime) Timestamp() *timestamppb.Timestamp
- func (dt *DateTime) Unmarshal(dAtA []byte) error
- func (dt *DateTime) UnmarshalJSON(data []byte) error
- func (dt *DateTime) UnmarshalText(data []byte) error
- func (dt *DateTime) UnmarshalXML(dec *xml.Decoder, st xml.StartElement) error
- type Lob
- type Number
- type SQLExecer
Constants ¶
View Source
const MaxInt = int64(int(^uint(0) >> 1))
MaxInt is the maximum value an int can contain.
Variables ¶
View Source
var ZeroIsAlmostZero bool
Functions ¶
func Mmap ¶ added in v0.18.0
Mmap the file for read, return the bytes and the error. Will read the data directly if Mmap fails.
func NumbersFromStrings ¶
Types ¶
type DateTime ¶ added in v0.6.0
func (DateTime) MarshalJSON ¶ added in v0.7.3
func (DateTime) MarshalText ¶ added in v0.7.3
MarshalText implements the encoding.TextMarshaler interface. The time is formatted in RFC 3339 format, with sub-second precision added if present.
func (DateTime) MarshalXML ¶ added in v0.6.0
func (*DateTime) ProtoMessage ¶ added in v0.6.0
func (dt *DateTime) ProtoMessage()
func (*DateTime) Timestamp ¶ added in v0.6.0
func (dt *DateTime) Timestamp() *timestamppb.Timestamp
func (*DateTime) UnmarshalJSON ¶ added in v0.7.3
func (*DateTime) UnmarshalText ¶ added in v0.7.3
UnmarshalText implements the encoding.TextUnmarshaler interface. The time is expected to be in RFC 3339 format.
func (*DateTime) UnmarshalXML ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.