osex

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

+build linux darwin windows

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FreeOS

func FreeOS()

func GetHostname

func GetHostname() string

GetHostname 获取主机名

func GetRoutineId

func GetRoutineId() uint64

func GoRoutine

func GoRoutine(function func())

func GoRoutineInLoop

func GoRoutineInLoop(function func())

func GoRoutineInTimer

func GoRoutineInTimer(duration time.Duration, function func())

func GoVarLoop

func GoVarLoop(n uint64, function func())

func IsLittleEndian

func IsLittleEndian() bool

func RegisterSignalForPrintStack

func RegisterSignalForPrintStack(sig os.Signal, callback func([]byte))

func RegisterSignalForProfiling

func RegisterSignalForProfiling(sig ...os.Signal)

func Reload

func Reload() error

func SwapEndianUin32

func SwapEndianUin32(val uint32) uint32

Types

This section is empty.

Jump to

Keyboard shortcuts

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