model

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirPathClean added in v1.1.0

func DirPathClean(path string) string

DirPathClean ...ディレクトリパスをきれいにする。

func Dirwalk added in v1.1.0

func Dirwalk(dir string, isIncludeRoot bool) []string

Dirwalk ...ディレクトリ内ファイルをを再帰的に検索し返す。

func GetFileNameWithoutExt added in v1.1.0

func GetFileNameWithoutExt(path string) string

GetFileNameWithoutExt ...文字列から拡張子を削除。

func GetFileString added in v1.1.0

func GetFileString(path string) (string, error)

GetFileString ...ファイルを読み取って[]byteではなくstringで返す。

func GetReadDir added in v1.1.0

func GetReadDir(path string, sw bool) []view.PathData

GetReadDir ...指定ディレクトリからディレクトリ(true)かワード(false)を返す。

func GetWordText added in v1.1.0

func GetWordText(word string) (string, error)

GetWordText ...単語ファイルのマークダウンを読み取って返す。

func IsRoot added in v1.1.0

func IsRoot(dir string) bool

IsRoot ...指定パスがルートディレクトリかチェックする(判定が雑い)。

func MarkdownToHTML added in v1.1.0

func MarkdownToHTML(text string) template.HTML

MarkdownToHTML ...マークダウンからHTMLに。

func RemoveDirectory added in v1.1.0

func RemoveDirectory(dir string)

RemoveDirectory ...再帰的にフォルダを削除する。

func RemoveWord added in v1.1.0

func RemoveWord(word string) error

RemoveWord ...単語を指定してファイルを削除する。

func SaveWord added in v1.1.0

func SaveWord(word string, text string)

SaveWord ...ファイルを保存する。

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL