Versions in this module Expand all Collapse all v1 v1.1.0 Jun 6, 2023 Changes in this version + const CpuExtraFeatureABM — darwin/amd64, linux/amd64, windows/amd64 + const CpuFeatureSSE3 — darwin/amd64, linux/amd64, windows/amd64 + const CpuFeatureSSE4_1 — darwin/amd64, linux/amd64, windows/amd64 + const CpuFeatureSSE4_2 — darwin/amd64, linux/amd64, windows/amd64 + const ERROR_ACCESS_DENIED — windows/amd64 + const ERROR_ALREADY_EXISTS — windows/amd64 + const ERROR_DIRECTORY — windows/amd64 + const ERROR_DIR_NOT_EMPTY — windows/amd64 + const ERROR_FILE_EXISTS — windows/amd64 + const ERROR_INVALID_HANDLE — windows/amd64 + const ERROR_INVALID_NAME — windows/amd64 + const ERROR_NEGATIVE_SEEK — windows/amd64 + const ERROR_PRIVILEGE_NOT_HELD — windows/amd64 + const FakeEpochNanos + var FakeNanosleep = sys.Nanosleep(func(int64) { ... }) + var FakeOsyield = sys.Osyield(func() { ... }) + var IsGo120 = strings.Contains(runtime.Version(), "go1.20") + func CompilerSupported() bool + func MmapCodeSegment(size int) ([]byte, error) + func MprotectRX(b []byte) (err error) + func MunmapCodeSegment(code []byte) error + func Nanosleep(ns int64) + func Nanotime() int64 + func NewFakeNanotime() sys.Nanotime + func NewFakeRandSource() io.Reader + func NewFakeWalltime() sys.Walltime + func RemapCodeSegment(code []byte, size int) ([]byte, error) + func ToPosixPath(in string) string + func UnwrapOSError(err error) syscall.Errno + func Walltime() (sec int64, nsec int32) + type CpuFeatureFlags interface — darwin/amd64, linux/amd64, windows/amd64 + Has func(cpuFeature uint64) bool + HasExtra func(cpuFeature uint64) bool + var CpuFeatures CpuFeatureFlags = loadCpuFeatureFlags() + type FdSet struct — js/wasm, windows/amd64 + Bits [16]int64 + func (f *FdSet) IsSet(fd int) bool + type FdSet syscall.FdSet — darwin/amd64, linux/amd64 + func (f *FdSet) Clear(fd int) + func (f *FdSet) Set(fd int) + func (f *FdSet) Zero()