internal

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2021 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Deprecated = log.New(os.Stderr, "DEPRECATED: bun: ", log.LstdFlags)
View Source
var Warn = log.New(os.Stderr, "WARN: bun: ", log.LstdFlags)

Functions

func Bytes

func Bytes(s string) []byte

Bytes converts string to byte slice.

func CamelCased

func CamelCased(s string) string

func IsLower

func IsLower(c byte) bool

func IsUpper

func IsUpper(c byte) bool

func MakeSliceNextElemFunc

func MakeSliceNextElemFunc(v reflect.Value) func() reflect.Value

func ParseTime

func ParseTime(s string) (time.Time, error)

func String

func String(b []byte) string

String converts byte slice to string.

func ToExported

func ToExported(s string) string

func ToLower

func ToLower(c byte) byte

func ToUpper

func ToUpper(c byte) byte

func Underscore

func Underscore(s string) string

Underscore converts "CamelCasedString" to "camel_cased_string".

func Unwrap

func Unwrap(err error) error

Types

type Flag

type Flag uint64

func (Flag) Has

func (flag Flag) Has(other Flag) bool

func (Flag) Remove

func (flag Flag) Remove(other Flag) Flag

func (Flag) Set

func (flag Flag) Set(other Flag) Flag

type HexEncoder

type HexEncoder struct {
	// contains filtered or unexported fields
}

func NewHexEncoder

func NewHexEncoder(b []byte) *HexEncoder

func (*HexEncoder) Bytes

func (enc *HexEncoder) Bytes() []byte

func (*HexEncoder) Close

func (enc *HexEncoder) Close() error

func (*HexEncoder) Write

func (enc *HexEncoder) Write(b []byte) (int, error)

type Logging

type Logging interface {
	Printf(format string, v ...interface{})
}
var Logger Logging = &logger{
	log: log.New(os.Stderr, "bun: ", log.LstdFlags|log.Lshortfile),
}

type MapKey

type MapKey struct {
	// contains filtered or unexported fields
}

func NewMapKey

func NewMapKey(is []interface{}) MapKey

Directories

Path Synopsis
dbtest module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL