util

package
v0.1.1-0...-0e70686 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArgsToCommand

func ArgsToCommand(args [][]byte) string

func CommandToArgs

func CommandToArgs(cmd string) [][]byte

func EnvGet

func EnvGet(key, fallback string) string

func Message

func Message(b []byte) []byte

func MessageArray

func MessageArray(array [][]byte) []byte

func MessageError

func MessageError(s string) []byte

func MessageInt

func MessageInt(i int64) []byte

func MessageNull

func MessageNull() []byte

func MessageOK

func MessageOK() []byte

func MessageString

func MessageString(s string) []byte

Types

type StreamBus

type StreamBus struct {
	// contains filtered or unexported fields
}

func NewStreamBus

func NewStreamBus(size int) *StreamBus

func (*StreamBus) Close

func (w *StreamBus) Close() error

func (*StreamBus) Read

func (w *StreamBus) Read() <-chan []byte

func (*StreamBus) Write

func (w *StreamBus) Write(buf []byte) (int, error)

Jump to

Keyboard shortcuts

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