access_md

package
v0.0.0-...-0403682 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MdPaths

type MdPaths struct {
	// contains filtered or unexported fields
}

NewMdPaths関数により生成すること

func NewMdPaths

func NewMdPaths(baseDir string, skipDirs []string, targetExts []string) (MdPaths, error)

func (*MdPaths) GetAll

func (p *MdPaths) GetAll() []string

保持している全てのファイルパスを取得

func (*MdPaths) GetBaseDirPath

func (p *MdPaths) GetBaseDirPath() string

func (*MdPaths) GetPageDir

func (p *MdPaths) GetPageDir(path string) string

ファイルを配置するディレクトリ名を生成

func (*MdPaths) GetPageName

func (p *MdPaths) GetPageName(path string) string

pathからふぁいる拡張子と、baseDir魔での文字列を除去する

func (*MdPaths) Map

func (p *MdPaths) Map(fn func(fPath string) interface{}) []interface{}

全要素に関数を適用した結果スライスを返却

func (*MdPaths) MapFileContent

func (p *MdPaths) MapFileContent(fn func(fPath string, fData []byte) interface{}) ([]interface{}, error)

全要素のファイル読み込み結果に対して処理を適用し、結果スライスを返却

Jump to

Keyboard shortcuts

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