Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server serves a HTML rendered Markdown preview. It can serve a single file or a directory (with file selection via ?file= query parameter).
type TreeEntry ¶
type TreeEntry struct {
Name string `json:"name"`
Path string `json:"path"`
IsDir bool `json:"isDir"`
Status string `json:"status,omitempty"` // M=modified, A=added, ?=untracked, D=deleted
Children []TreeEntry `json:"children,omitempty"`
}
TreeEntry represents a file or directory in the tree.
Click to show internal directories.
Click to hide internal directories.