tidb: github.com/pingcap/tidb/util/hack Index | Files

package hack

import "github.com/pingcap/tidb/util/hack"

Index

Package Files

hack.go

func Slice Uses

func Slice(s string) (b []byte)

Slice converts string to slice without copy. Use at your own risk.

type MutableString Uses

type MutableString string

MutableString can be used as string via string(MutableString) without performance loss.

func String Uses

func String(b []byte) MutableString

String converts slice to MutableString without copy. The MutableString can be converts to string without copy. Use it at your own risk.

Package hack imports 2 packages (graph) and is imported by 159 packages. Updated 2019-09-03. Refresh now. Tools for package owners.