Versions in this module Expand all Collapse all v1 v1.0.0 Dec 20, 2020 Changes in this version + func Generate(ctx context.Context, c Config) error + func Handler(ctx context.Context, conf Config) func(w http.ResponseWriter, r *http.Request) + func Read(ctx context.Context, path string, urls URLs, cb Callback) error + type Callback func(path, url string) error + func HTMLFileCallback(c Config, tmpl *template.Template) Callback + func HTTPMuxCallback(parent string, r Mux) Callback + type Config struct + DisableMetaFetch bool + HTTP HTTP + Path string + URLs URLs + func FromYAML(r io.Reader) (Config, error) + type HTTP struct + Address string + BasePath string + type MetaData struct + Tags []string + Title string + func GetMetaData(html io.ReadCloser) (meta MetaData, err error) + type Mux interface + HandleFunc func(pattern string, handler func(http.ResponseWriter, *http.Request)) + type Server struct + func NewServer(ctx context.Context, config Config) *Server + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) + type URLs map[interface{}]interface