pills

package
v0.0.0-...-4b3a70a Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2014 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PillFiles = map[Pill]string{
	Pill_WriteJsonString: "jsonstring.go",
	Pill_FormatBits:      "iota.go",
}
View Source
var PillNames = map[Pill]string{
	Pill_WriteJsonString: "WriteJsonString",
	Pill_FormatBits:      "FormatBits",
}

Functions

func FormatBits

func FormatBits(dst *bytes.Buffer, u uint64, base int, neg bool)

formatBits computes the string representation of u in the given base. If neg is set, u is treated as negative int64 value. If append_ is set, the string is appended to dst and the resulting byte slice is returned as the first result value; otherwise the string is returned as the second result value.

func GetPill

func GetPill(p Pill) ([]string, string, error)

func WriteJsonString

func WriteJsonString(buf *bytes.Buffer, s string)

*

  • Function ported from encoding/json: func (e *encodeState) string(s string) (int, error)

Types

type Pill

type Pill int32
const (
	Pill_WriteJsonString Pill = 0
	Pill_FormatBits      Pill = 1
)

Jump to

Keyboard shortcuts

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