Documentation ¶
Index ¶
- func AbsolutePath(path string) string
- func CleanupDirs(t ErrorReporter, paths ...string)
- func CreateDir(path string, dirName string) string
- func CreateDirWithMode(path string, dirName string, mode os.FileMode) string
- func CreateFile(path string, fileName string, contents ...string) string
- func CreateFileWithMode(path string, fileName string, mode os.FileMode, contents ...string) string
- func CreateTempDir() string
- func FileExists(path string) bool
- func FileMode(path string) os.FileMode
- func FileURL(absolutePath string) string
- func SameFile(p1 string, p2 string) bool
- func Serve(listener net.Listener, response HttpResponse) error
- func ServeSlow(listener net.Listener, response HttpResponse, delay time.Duration) error
- type ErrorReporter
- type HttpResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsolutePath ¶ added in v0.3.0
func CleanupDirs ¶
func CleanupDirs(t ErrorReporter, paths ...string)
func CreateDirWithMode ¶
func CreateFileWithMode ¶
func CreateTempDir ¶
func CreateTempDir() string
func FileExists ¶
Types ¶
type ErrorReporter ¶
type ErrorReporter interface {
Errorf(format string, args ...interface{})
}
Click to show internal directories.
Click to hide internal directories.