Documentation ¶
Index ¶
- func DirPathClean(path string) string
- func Dirwalk(dir string, isIncludeRoot bool) []string
- func GetFileNameWithoutExt(path string) string
- func GetFileString(path string) (string, error)
- func GetReadDir(path string, sw bool) []view.PathData
- func GetWordText(word string) (string, error)
- func IsRoot(dir string) bool
- func MarkdownToHTML(text string) template.HTML
- func RemoveDirectory(dir string)
- func RemoveWord(word string) error
- func SaveWord(word string, text string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DirPathClean ¶ added in v1.1.0
DirPathClean ...ディレクトリパスをきれいにする。
func GetFileNameWithoutExt ¶ added in v1.1.0
GetFileNameWithoutExt ...文字列から拡張子を削除。
func GetFileString ¶ added in v1.1.0
GetFileString ...ファイルを読み取って[]byteではなくstringで返す。
func GetReadDir ¶ added in v1.1.0
GetReadDir ...指定ディレクトリからディレクトリ(true)かワード(false)を返す。
func GetWordText ¶ added in v1.1.0
GetWordText ...単語ファイルのマークダウンを読み取って返す。
func MarkdownToHTML ¶ added in v1.1.0
MarkdownToHTML ...マークダウンからHTMLに。
func RemoveDirectory ¶ added in v1.1.0
func RemoveDirectory(dir string)
RemoveDirectory ...再帰的にフォルダを削除する。
func RemoveWord ¶ added in v1.1.0
RemoveWord ...単語を指定してファイルを削除する。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.