Documentation ¶
Index ¶
- Variables
- func ApplyMemoryLimit()
- func Deduplicate(s string) string
- func FatalError(err error)
- func GetImageBase(file *pe.File) uint64
- func GetURLFromListen(listen string) string
- func InitLogger(level slog.Level)
- func Must(err error)
- func PrefixToPath(s string) (string, error)
- func SortedKeys[T cmp.Ordered, U any](m map[T]U) []T
- func UglyGuess(s string) string
- func UsePanicForExit()
- func WaitSignal()
- type Set
- type SyncOutput
- type ValueOnce
Constants ¶
This section is empty.
Variables ¶
View Source
var Stdout = &SyncOutput{ Mutex: sync.Mutex{}, output: os.Stderr, }
Functions ¶
func ApplyMemoryLimit ¶ added in v1.0.8
func ApplyMemoryLimit()
func Deduplicate ¶
func FatalError ¶ added in v0.3.1
func FatalError(err error)
func GetImageBase ¶
func GetURLFromListen ¶ added in v1.0.4
func InitLogger ¶
func PrefixToPath ¶
PrefixToPath is the inverse of PathToPrefix, replacing escape sequences with the original character. from src/cmd/internal/objabi/path.go
func SortedKeys ¶ added in v1.0.0
func UglyGuess ¶
UglyGuess an ugly hack for a known issue about golang compiler sees https://github.com/golang/go/issues/66313
func UsePanicForExit ¶ added in v1.0.5
func UsePanicForExit()
Types ¶
type Set ¶ added in v1.0.11
type Set[T comparable] map[T]struct{}
func NewSet ¶ added in v1.0.11
func NewSet[T comparable]() Set[T]
type SyncOutput ¶
func (*SyncOutput) SetOutput ¶
func (s *SyncOutput) SetOutput(output io.Writer)
Click to show internal directories.
Click to hide internal directories.