go-vitess.v1: gopkg.in/src-d/go-vitess.v1/hack Index | Files

package hack

import "gopkg.in/src-d/go-vitess.v1/hack"

Package hack gives you some efficient functionality at the cost of breaking some Go rules.

Index

Package Files

hack.go

func String Uses

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

String force casts a []byte to a string. USE AT YOUR OWN RISK

func StringPointer Uses

func StringPointer(s string) unsafe.Pointer

StringPointer returns &s[0], which is not allowed in go

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