Documentation ¶
Index ¶
- Constants
- func BuildCSS(src, dst string) error
- func BuildWASM(src, dst string, support bool) error
- func CopyFile(src, dst string) (int64, error)
- func Hash(text string) string
- func IsDir(src string) bool
- func IsFile(src string) bool
- func ListDir(src string) []string
- func NewCommand(args []string, cwd string, environ []string) *exec.Cmd
- func NewWASMServer() (http.Handler, error)
- func RemovePrefixes(prefix string) string
- func Replace2(s, olda, newa, oldb, newb string) string
- func StringInSlice(a string, list []string) bool
- func Subfolders(path string) (paths []string)
- func WriteIndex(w io.Writer) error
- type Directories
- type File
- type FileWatcher
- type Function
- type Stylesheet
- type Type
- type WatchType
- type Watcher
Constants ¶
View Source
const ( SEP_HEADER = `` /* 182-byte string literal not displayed */ SEP_FUNCHEADER = `` /* 364-byte string literal not displayed */ SEP_FUNCPROLOGUE = ` var {param} {ptype} dec.Decode(&{param}) /* End for each */` SEP_FUNCCORE = ` {fncall} /* For each return, encode the result */` SEP_FUNCEPILOGUE_LOGERR = ` if {param} != nil { LogError(ctx, {param}) }` SEP_FUNCEPILOGUE = ` enc.Encode({param}) /* End for each */` SEP_PFUNCEPILOGUE = ` if {param} != nil { enc.Encode({param}) } else { enc.Encode(false) } /* End for each */` SEP_FUNCFOOTER = ` _ = enc _ = dec })` SEP_FOOTER = ` } ` CEP_HEADER = `` /* 158-byte string literal not displayed */ CEP_FUNCHEADER = `` /* 228-byte string literal not displayed */ CEP_FUNCPROLOGUE = ` enc.Encode({param}) ` CEP_FUNCCORE = `` /* 253-byte string literal not displayed */ CEP_FUNCEPILOGUE_LOGERR = ` if dec == nil { {param} = errors.New("v8: failed to establish connection") }` CEP_FUNCEPILOGUE = ` var {param} {ptype} if dec != nil { dec.Decode(&{param}) }` CEP_FUNCFOOTER = ` /* End for each */ _ = dec return {fnreturn} } ` CEP_FOOTER = `` )
View Source
const INDEX_HTML = `` /* 668-byte string literal not displayed */
View Source
const LOADER_GIF = `` /* 57374-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func NewWASMServer ¶
func RemovePrefixes ¶
func StringInSlice ¶
func Subfolders ¶
Subfolders returns a slice of subfolders (recursive), including the folder provided.
func WriteIndex ¶
Types ¶
type Directories ¶
type Directories struct {
// contains filtered or unexported fields
}
func GetDirectories ¶
func GetDirectories() (*Directories, error)
func (*Directories) Client ¶
func (d *Directories) Client() string
func (*Directories) IsLocal ¶
func (d *Directories) IsLocal() bool
func (*Directories) Server ¶
func (d *Directories) Server() string
type FileWatcher ¶
func NewRecursiveWatcher ¶
func NewRecursiveWatcher(path string) (FileWatcher, error)
func NewWatcher ¶
func NewWatcher(path string) (FileWatcher, error)
type Stylesheet ¶
type Stylesheet struct {
// contains filtered or unexported fields
}
func (*Stylesheet) AddFile ¶
func (ss *Stylesheet) AddFile(reader io.Reader)
Click to show internal directories.
Click to hide internal directories.