util

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Htons

func Htons(i uint16) uint16

func Motd

func Motd() string

func Ntohs

func Ntohs(i uint16) uint16

func Pack64

func Pack64(a uint16, b uint16, c uint16, d uint16) uint64

func RandomName

func RandomName() (string, error)

func TerminalSize

func TerminalSize() (*pty.Winsize, error)

func Unpack64

func Unpack64(i uint64) []uint16

Types

type AtomicBoolean

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

func NewAtomicBoolean

func NewAtomicBoolean(value bool) AtomicBoolean

func (*AtomicBoolean) Get

func (ab *AtomicBoolean) Get() bool

func (*AtomicBoolean) Set

func (ab *AtomicBoolean) Set(value bool)

Jump to

Keyboard shortcuts

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