Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenBrowser ¶
func OpenBrowser(uri string)
From Miki Tebeka: Open calls the OS default program for uri http://go-wise.blogspot.com/2012/04/open-fileurls-with-default-program.html
Types ¶
type FilePattern ¶
type FilePattern struct {
// contains filtered or unexported fields
}
func RenameDir ¶
func RenameDir(pattern, directory string) FilePattern
RenameDir generates a FilePattern for use with ServeMux
type FileSaver ¶
type FileSaver struct {
// contains filtered or unexported fields
}
FileSaver implements MemSaver maybe add a file location?
type ServeMux ¶
ServeMux extends http.ServeMux to provide additional functionality.
func NewServeMux ¶
func NewServeMux() ServeMux
NewServeMux extends http.NewServeMux to provide additional functionality.
func (ServeMux) HandleFilePatterns ¶
func (mux ServeMux) HandleFilePatterns(root string, fpats ...FilePattern)
HandleFilePatterns creates a http.FileSystem for the passed root path, and associates it with the passed FilePatterns.
func (ServeMux) HandleText ¶
HandleText associates a static block of text with the passed url pattern.
Click to show internal directories.
Click to hide internal directories.