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

package hack

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


Package Files


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) (s 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 319 packages. Updated 2019-11-21. Refresh now. Tools for package owners.