Documentation ¶
Index ¶
- func DirStats(path string) (directories, files int, size bytesize.ByteSize)
- func FProfile(name string, cb func()) time.Duration
- func PProfile(name string, cb func()) time.Duration
- func ParseTime(str string) time.Time
- func PrintTime(t time.Time) int
- func Profile(name string, cb func()) time.Duration
- func SetupLogging()
- func SimpleTime(i int) time.Time
- func SimpleUTime(i int) time.Time
- func TmpDir(cb func(name string))
- type FakeListener
- type TmpDirectory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupLogging ¶
func SetupLogging()
func SimpleTime ¶
func SimpleUTime ¶
Types ¶
type FakeListener ¶
type FakeListener struct {
// contains filtered or unexported fields
}
FakeListener implements net.Listener and has an extra method (Provide) that allows
you to queue a connection to be consumed via Accept.
func NewFakeListener ¶
func NewFakeListener() *FakeListener
func (*FakeListener) Addr ¶
func (*FakeListener) Addr() net.Addr
func (*FakeListener) Close ¶
func (fl *FakeListener) Close() error
type TmpDirectory ¶
type TmpDirectory struct {
Path string
}
func TmpDirSync ¶
func TmpDirSync() *TmpDirectory
func (*TmpDirectory) Close ¶
func (t *TmpDirectory) Close()
Click to show internal directories.
Click to hide internal directories.