Documentation
¶
Index ¶
- Constants
- func AllMatches(doc *html.Node, delegate Matcher, limit int) []*html.Node
- func CleanupTimed(dir AbsDir, delete bool) error
- func Compress(src, dst AbsDir) error
- func GetAbs(absolutePath AbsDir) string
- func GetAttribute(node *html.Node, attribute string) string
- func GetRel(relativePath RelDir, absolutePath AbsDir) string
- func Match(doc *html.Node, delegate Matcher) *html.Node
- func ReadOverrides(path string) (map[string]string, error)
- func Register(absolutePaths map[AbsDir]string, relativeNames map[RelDir]string, ...) error
- func ResolveAbsPaths(rootPath string, absDirNames map[AbsDir]string, overrides map[string]string) map[AbsDir]string
- func Sanitize(s string) string
- func ServeFile(w http.ResponseWriter, r *http.Request, absPath string, opts ...ServeOption)
- func TextContent(node *html.Node) string
- func TimestampedTarGzFilename() string
- type AbsDir
- type Matcher
- type RelDir
- type ServeOption
Constants ¶
View Source
const (
DefaultFileMode = permUrwGrwOr
)
View Source
const Layout = "2006-01-02-15-04-05"
Variables ¶
This section is empty.
Functions ¶
func AllMatches ¶ added in v0.2.11
func CleanupTimed ¶ added in v0.2.12
func ResolveAbsPaths ¶ added in v0.2.15
func ServeFile ¶ added in v0.2.17
func ServeFile(w http.ResponseWriter, r *http.Request, absPath string, opts ...ServeOption)
func TextContent ¶ added in v0.2.11
func TimestampedTarGzFilename ¶ added in v0.2.13
func TimestampedTarGzFilename() string
Types ¶
type Matcher ¶ added in v0.2.11
func AtomClassMatcher ¶ added in v0.2.11
func AtomMatcher ¶ added in v0.2.11
func SelectorMatcher ¶ added in v0.2.11
type ServeOption ¶ added in v0.2.17
type ServeOption int
const ( NoCacheControl ServeOption = iota NoContentDisposition NoContentLength NoBinaryContentType NoLastModified )
Click to show internal directories.
Click to hide internal directories.