utils

package
v0.0.0-...-1794af1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2016 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log(level LogLevelType, msg string, args ...interface{})

func ReadInt24Be

func ReadInt24Be(data []byte) int

func ReadInt32Be

func ReadInt32Be(data []byte) int

func ReadInt32Le

func ReadInt32Le(data []byte) int

func SetLogLevel

func SetLogLevel(level LogLevelType)

func Utf16BeToUtf8

func Utf16BeToUtf8(data []byte) string

func Utf16LeToUtf8

func Utf16LeToUtf8(data []byte) string

func Utf8ToUtf16Le

func Utf8ToUtf16Le(text string) []byte

func WriteInt24Be

func WriteInt24Be(size int, dst []byte)

func WriteInt32Be

func WriteInt32Be(size int, dst []byte)

func WriteInt32Le

func WriteInt32Le(size int, dst []byte)

func WriteUint32Be

func WriteUint32Be(size uint32, dst []byte)

func WriteUint32Le

func WriteUint32Le(size uint32, dst []byte)

Types

type LogLevelType

type LogLevelType int
const (
	ERROR LogLevelType = iota
	WARNING
	INFO
	DEBUG
)

func LogLevel

func LogLevel() LogLevelType

Jump to

Keyboard shortcuts

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