Documentation ¶
Index ¶
- Variables
- func ApplyMemoryLimit()
- func Collect[K comparable](seq iter.Seq[K]) []K
- func Deduplicate(s string) string
- func DetectJSON(s io.ReaderAt) bool
- func FatalError(err error)
- func GetImageBase(file *pe.File) uint64
- func GetTableStyle() table.Style
- func GetURLFromListen(listen string) string
- func InitLogger(level slog.Level)
- func Must(err error)
- func Must2[T any](v T, err error) T
- func PercentString(f float64) string
- 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 WaitDebugger(string)
- func WaitSignal()
- type ReaderAtAdapter
- type Set
- type SyncOutput
- type ValueOnce
Constants ¶
This section is empty.
Variables ¶
View Source
var SyncStderr = &SyncOutput{ Mutex: sync.Mutex{}, output: os.Stderr, }
View Source
var SyncStdout = &SyncOutput{ Mutex: sync.Mutex{}, output: os.Stdout, }
Functions ¶
func ApplyMemoryLimit ¶ added in v1.0.8
func ApplyMemoryLimit()
func Collect ¶ added in v1.3.12
func Collect[K comparable](seq iter.Seq[K]) []K
func Deduplicate ¶
func DetectJSON ¶ added in v1.4.0
DetectJSON weak detects if the given reader contains a JSON object
func FatalError ¶ added in v0.3.1
func FatalError(err error)
func GetImageBase ¶
func GetTableStyle ¶ added in v1.4.0
func GetURLFromListen ¶ added in v1.0.4
func InitLogger ¶
func PercentString ¶ added in v1.4.0
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()
func WaitDebugger ¶ added in v1.6.3
func WaitDebugger(string)
WaitDebugger is a no-op on normal build
Types ¶
type ReaderAtAdapter ¶ added in v1.4.0
type ReaderAtAdapter struct {
// contains filtered or unexported fields
}
func NewReaderAtAdapter ¶ added in v1.4.0
func NewReaderAtAdapter(readerAt io.ReaderAt) *ReaderAtAdapter
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.