Documentation
¶
Index ¶
- Variables
- func BuildIndex()
- func CloseWatcher()
- func Create(wpath string) error
- func InitWatcher()
- func Rename(oldpath string, newpath string) error
- type WikiFile
- func (f *WikiFile) DirMainPage() *WikiFile
- func (f *WikiFile) FilePath() string
- func (f *WikiFile) Files() []*WikiFile
- func (f *WikiFile) IsDir() bool
- func (f *WikiFile) IsDirMainPage() bool
- func (f *WikiFile) IsMarkdown() bool
- func (f *WikiFile) Name() string
- func (f *WikiFile) NameWithoutExt() string
- func (f *WikiFile) ParentDir() *WikiFile
- func (f *WikiFile) Raw() []byte
- func (f *WikiFile) Remove() error
- func (f *WikiFile) RemoveAll() error
- func (f *WikiFile) Save(b []byte) error
- func (f *WikiFile) URLPath() template.URL
- func (f *WikiFile) WikiPath() string
- func (f *WikiFile) WikiPathList() []*WikiFile
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotExist = errors.New("file not exist") ErrNotFound = errors.New("file not found") )
Functions ¶
func CloseWatcher ¶ added in v0.4.0
func CloseWatcher()
func InitWatcher ¶ added in v0.4.0
func InitWatcher()
Types ¶
type WikiFile ¶
type WikiFile struct {
// contains filtered or unexported fields
}
var (
WikiRoot *WikiFile
)
func (*WikiFile) DirMainPage ¶
func (*WikiFile) IsDirMainPage ¶ added in v0.4.0
func (*WikiFile) IsMarkdown ¶
func (*WikiFile) NameWithoutExt ¶
func (*WikiFile) WikiPathList ¶ added in v0.4.0
WikiPathList returns slice of each WikiFile in wikipath (slice doesn't include urlPrefix)
Click to show internal directories.
Click to hide internal directories.