Documentation
¶
Index ¶
- Variables
- func BuildIndex()
- func Create(wpath string) error
- 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) 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) Save(b []byte) error
- func (f *WikiFile) URLPath() template.URL
- func (f *WikiFile) WikiPath() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotExist = errors.New("file not exist") ErrNotFound = errors.New("file not found") )
Functions ¶
Types ¶
type WikiFile ¶
type WikiFile struct {
// contains filtered or unexported fields
}
var (
WikiRoot *WikiFile
)
func (*WikiFile) DirMainPage ¶
func (*WikiFile) IsMarkdown ¶
func (*WikiFile) NameWithoutExt ¶
Click to show internal directories.
Click to hide internal directories.