Documentation ¶
Index ¶
- Variables
- func AssertOneRow(l int) error
- func BytesToString(b []byte) string
- func CamelCased(s string) string
- func IsLower(c byte) bool
- func IsUpper(c byte) bool
- func Logf(s string, args ...interface{})
- func MakeSliceNextElemFunc(v reflect.Value) func() reflect.Value
- func RetryBackoff(retry int, minBackoff, maxBackoff time.Duration) time.Duration
- 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 UpperString(s string) string
- type Error
- type PGError
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMultiRows = Errorf("pg: multiple rows in result set")
View Source
var ErrNoRows = Errorf("pg: no rows in result set")
View Source
var Logger *log.Logger
Functions ¶
func AssertOneRow ¶
func BytesToString ¶
BytesToString converts byte slice to string.
func CamelCased ¶
func RetryBackoff ¶
Retry backoff with jitter sleep to prevent overloaded conditions during intervals https://www.awsarchitectureblog.com/2015/03/backoff.html
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 ¶
Click to show internal directories.
Click to hide internal directories.