Documentation ¶
Index ¶
- func CloseQuietly(cl Closeable)
- func ContainsMarkdown(dirPath string) bool
- func ContentType(urlPath string) string
- func IsDirectory(dirPath string) bool
- func IsFile(dirPath string) bool
- func ProjectRoot() string
- func RemoveAllQuietly(path string)
- func ResolveUrlPath(urlPath string, rootDir string) (string, error)
- func SameFilePath(p1 string, p2 string) (bool, error)
- func ToAbsoluteDirectory(dirPath string) (string, error)
- func ToAbsoluteFile(filePath string) (string, error)
- func ToAbsoluteUrlPath(filePath string, rootDir string) (string, error)
- func UrlPathToDirectory(urlDirPath string, rootDir string) (string, error)
- func UrlPathToFile(urlFilePath string, rootDir string) (string, error)
- func WriteData(w http.ResponseWriter, urlPath string, data []byte) error
- type Closeable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseQuietly ¶
func CloseQuietly(cl Closeable)
func ContainsMarkdown ¶
func ContentType ¶
func IsDirectory ¶
func ProjectRoot ¶
func ProjectRoot() string
func RemoveAllQuietly ¶
func RemoveAllQuietly(path string)
func ToAbsoluteDirectory ¶
func ToAbsoluteFile ¶
func UrlPathToDirectory ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.