common

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EscapeBytes

func EscapeBytes(value string) string

EscapeBytes adds a backslash to \, ], " characters.

func RemoveBytes

func RemoveBytes(data []byte, positions []int, offset int) []byte

RemoveBytes removes byte at given positions from data byte slice, starting from the given offset.

func UnsafeUTF8DecimalCodePointsToInt

func UnsafeUTF8DecimalCodePointsToInt(chars []uint8) int

UnsafeUTF8DecimalCodePointsToInt converts a slice containing a series of UTF-8 decimal code points into their integer rapresentation.

It assumes input code points are in the range 48-57. Returns a pointer since an empty slice is equal to nil and not to the zero value of the codomain (ie., `int`).

Types

This section is empty.

Jump to

Keyboard shortcuts

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