store

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirToStruct

func DirToStruct(dir string,
	dbPath string,
	structToHTML func(interface{}) (res string),
	Generate func(
		db sqlite.DbResult,
		FindFileEntityFromID structAll.FindFileEntityFromID,
		structToHTML func(interface{}) (res string),
	) func(entity structAll.FileEntity) (html string, xml string)) structAll.DirToStructRes

DirToStruct 从 目录 转为更可用的结构

func FilePathToWebPath

func FilePathToWebPath(filePath string) string

FilePathToWebPath 将相对文件路径转为 web路径,主要是去除文件中的id 以及添加 .html

func TagAttr

func TagAttr(tokens []byte) (valid bool, remains, attr, name, val []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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