Documentation ¶
Overview ¶
internal is a private internal package.
Index ¶
- Variables
- func AssertOneRow(l int) error
- func Atoi(b []byte) (int, error)
- func BytesToString(b []byte) string
- func CamelCased(s string) string
- func IsLower(c byte) bool
- func IsUpper(c byte) bool
- func MakeSliceNextElemFunc(v reflect.Value) func() reflect.Value
- func ParseFloat(b []byte, bitSize int) (float64, error)
- func ParseInt(b []byte, base int, bitSize int) (int64, error)
- func ParseUint(b []byte, base int, bitSize int) (uint64, error)
- func RetryBackoff(retry int, minBackoff, maxBackoff time.Duration) time.Duration
- func Sleep(ctx context.Context, dur time.Duration) error
- func StringToBytes(s string) []byte
- func ToExported(s string) string
- func ToLower(c byte) byte
- func ToUpper(c byte) byte
- func Underscore(s string) string
- func Unwrap(err error) error
- func UpperString(s string) string
- func WithSpan(ctx context.Context, name string, fn func(context.Context, trace.Span) error) error
- type Error
- type Logging
- type PGError
- type UndoneContext
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoRows = Errorf("pg: no rows in result set") ErrMultiRows = Errorf("pg: multiple rows in result set") )
Functions ¶
func AssertOneRow ¶
func BytesToString ¶
BytesToString converts byte slice to string.
func CamelCased ¶
func RetryBackoff ¶
func StringToBytes ¶
StringToBytes converts string to byte slice.
func ToExported ¶
func Underscore ¶
Underscore converts "CamelCasedString" to "camel_cased_string".
func UpperString ¶
Types ¶
type PGError ¶
type PGError struct {
// contains filtered or unexported fields
}
func NewPGError ¶
func (PGError) IntegrityViolation ¶
type UndoneContext ¶
func UndoContext ¶
func UndoContext(ctx context.Context) UndoneContext
func (UndoneContext) Done ¶
func (UndoneContext) Done() <-chan struct{}
func (UndoneContext) Err ¶
func (UndoneContext) Err() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.