Documentation ¶
Index ¶
- Constants
- func CreateFile(path string) *os.File
- func FloatToOneString(f float64) string
- func FloatToTwoString(f float64) string
- func IntToString(i int64) string
- func RenderExplainAnalyze(rows *sql.Rows) (text string, err error)
- func RenderJson(headers []string, values [][]string)
- func RenderString(format string, headers []string, values [][]string)
- func RenderTable(headers []string, values [][]string)
- func Slice(s string) (b []byte)
- func String(b []byte) (s string)
- type BufAllocator
Constants ¶
View Source
const ( OutputStylePlain = "plain" OutputStyleTable = "table" OutputStyleJson = "json" )
output style
Variables ¶
This section is empty.
Functions ¶
func CreateFile ¶
func FloatToOneString ¶ added in v1.0.9
func FloatToTwoString ¶ added in v1.0.9
func IntToString ¶ added in v1.0.9
func RenderExplainAnalyze ¶ added in v1.0.4
func RenderJson ¶ added in v1.0.9
func RenderString ¶ added in v1.0.9
func RenderTable ¶ added in v1.0.9
Types ¶
type BufAllocator ¶
type BufAllocator struct {
// contains filtered or unexported fields
}
BufAllocator helps you manage multi chunks in one []byte.
func NewBufAllocator ¶
func NewBufAllocator() *BufAllocator
NewBufAllocator creates a NewBufAllocator
func (*BufAllocator) Alloc ¶
func (b *BufAllocator) Alloc(n int) []byte
Alloc allocates a new chunk with the specified size n.
Click to show internal directories.
Click to hide internal directories.