Versions in this module Expand all Collapse all v1 v1.3.0 Jun 23, 2021 v1.2.1 Aug 15, 2019 v1.2.0 Aug 15, 2019 v1.1.1 Jul 26, 2019 v1.1.0 Mar 11, 2019 v1.0.0 Mar 10, 2019 v0 v0.2.0 Mar 3, 2019 Changes in this version + type MultiLess struct + func (me *MultiLess) Final() bool + func (me *MultiLess) FinalOk() (left, ok bool) + func (me *MultiLess) Less() bool + func (me *MultiLess) Next(f SameLessFunc) + func (me *MultiLess) NextBool(l, r bool) + func (me *MultiLess) StrictNext(same, less bool) + type SameLessFunc func() (same, less bool) v0.1.0 Jan 11, 2019 Changes in this version + const MiB + const O_ACCMODE + var ZeroReader zeroReader + func AddCondToFlags(cond *sync.Cond, flags ...*Flag) + func AddrIP(addr net.Addr) net.IP + func AddrPort(addr net.Addr) int + func BestNamedCertificate(c *tls.Config, clientHello *tls.ClientHelloInfo) (*tls.Certificate, bool) + func CleanURLPath(p string) string + func CopyExact(dest interface{}, src interface{}) + func Fatal(msg interface{}) + func FileInfoAccessTime(fi os.FileInfo) time.Time + func FilePathExists(p string) bool + func GetTestName() string + func IsAddrInUse(err error) bool + func IsEmptyValue(v reflect.Value) bool + func IsZeroValue(i interface{}) bool + func JitterDuration(average, plusMinus time.Duration) (ret time.Duration) + func KebabCase(s string) string + func LimitLen(b []byte, max ...interface{}) []byte + func LoadCertificateDir(dir string) (certs []tls.Certificate, err error) + func Max(_less interface{}, vals ...interface{}) interface + func MaxInt(first int64, rest ...interface{}) int64 + func MinInt(first interface{}, rest ...interface{}) int64 + func MonotonicSince(since MonotonicTime) (ret time.Duration) + func NewSelfSignedCertificate() (cert tls.Certificate, err error) + func ParseHostPort(hostport string) (host string, port int, err error) + func PathSplitExt(p string) (ret struct{ ... }) + func StoppedFuncTimer(f func()) (t *time.Timer) + func StringTruth(s string) (ret bool) + func URLJoinSubPath(base, rel string) string + func URLOpaquePath(u *url.URL) string + func Unchomp(s string) string + func WaitEvents(l sync.Locker, evs ...*Event) + func WriteStack(w io.Writer, stack []uintptr) + type ChanCond struct + func (me *ChanCond) Broadcast() + func (me *ChanCond) Signal() + func (me *ChanCond) Wait() <-chan struct{} + type ContextedReader struct + Ctx context.Context + R ReadContexter + func (me ContextedReader) Read(b []byte) (int, error) + type Encoding interface + DecodeString func(string) ([]byte, error) + EncodeToString func([]byte) string + type Event struct + func (me *Event) C() <-chan struct{} + func (me *Event) Clear() + func (me *Event) IsSet() bool + func (me *Event) LockedChan(lock sync.Locker) <-chan struct{} + func (me *Event) Set() (first bool) + func (me *Event) SetBool(b bool) + func (me *Event) Wait() + type Flag struct + Conds map[*sync.Cond]struct{} + func (me *Flag) Get() bool + func (me *Flag) Set(value bool) + type HostMaybePort struct + Err error + Host string + NoPort bool + Port int + func SplitHostMaybePort(hostport string) HostMaybePort + func (me *HostMaybePort) String() string + type IdentityEncoding struct + func (IdentityEncoding) DecodeString(s string) ([]byte, error) + func (IdentityEncoding) EncodeToString(b []byte) string + type IndentMap struct + func NewExpvarIndentMap(name string) *IndentMap + func (v *IndentMap) String() string + type IpPort struct + IP net.IP + Port uint16 + func IpPortFromNetAddr(na net.Addr) IpPort + func (me IpPort) String() string + type MonotonicTime struct + func MonotonicNow() MonotonicTime + func (me MonotonicTime) Sub(other MonotonicTime) time.Duration + type Operation struct + func (op Operation) Unlock() + type RWLocker interface + RLock func() + RUnlock func() + type ReadContexter interface + ReadContext func(context.Context, []byte) (int, error) + type ReadSeekContexter interface + func NewSectionReadSeeker(base io.ReadSeeker, off, size int64) (ret ReadSeekContexter) + type RunLengthEncoder interface + Append func(element interface{}, count uint64) + Flush func() + func NewRunLengthEncoder(eachRun func(element interface{}, count uint64)) RunLengthEncoder + type SectionWriter struct + func NewSectionWriter(w io.WriterAt, off, len int64) *SectionWriter + func (me *SectionWriter) WriteAt(b []byte, off int64) (n int, err error) + type SingleFlight struct + func (me *SingleFlight) Lock(id string) Operation + func (me *SingleFlight) Unlock(id string) + type SqliteTime time.Time + func (me *SqliteTime) Scan(src interface{}) error + type StatWriter struct + Written int64 + func NewStatWriter(w io.Writer) *StatWriter + func (me *StatWriter) Write(b []byte) (n int, err error) + type StatusResponseWriter struct + BytesWritten int64 + Code int + GotFirstByte bool + Hijacked bool + Started time.Time + Ttfb time.Duration + WroteHeader Event + func (me *StatusResponseWriter) Hijack() (c net.Conn, b *bufio.ReadWriter, err error) + func (me *StatusResponseWriter) Write(b []byte) (n int, err error) + func (me *StatusResponseWriter) WriteHeader(code int) + type SynchronizedEvent struct + func (me *SynchronizedEvent) C() <-chan struct{} + func (me *SynchronizedEvent) Clear() + func (me *SynchronizedEvent) Set() Other modules containing this package github.com/anacrolix/missinggo/v2