Documentation ¶
Index ¶
- Variables
- func AppendBlockScript(blockScript string) (blockScriptOut string)
- func CreateHTMLNestedList(items []domain.NestedListItem, listStyle string, first bool) string
- func CreateMarkDownNestedList(items []domain.NestedListItem, listStyle, spaceLeft string) string
- func Find(slice []string, val string) (int, bool)
- func HumanFileSize(fileSize float64) string
- func IsValidStyle(style string) bool
- func LoadAsset(assetFile, assetType string) (contentFile []byte)
- func LoadExternalStyleMap(path string)
- func LoadStyleMap(path string)
- func MinifyAsset(assetPath, assetType string) (contentMinified []byte)
- func MinifyContent(content []byte, format string) (contentMinified []byte, err error)
- func MinifyExternalStyle(libPath string) (contentMinified []byte, err error)
- func MinifyLib(libPath, libType string) (contentMinified []byte)
- func ParseEditorJSON(editorJS string) domain.EditorJS
- func PrepareData(el domain.EditorJSBlock) (data interface{})
- func ReadJsonFile(jsonFilePath string) (jsonData string, err error)
- func Separator(class string) string
- func WriteOutputFile(outputFilePath, outputContent, outputType string) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var SM domain.StyleMap
Functions ¶
func AppendBlockScript ¶
func CreateHTMLNestedList ¶
func CreateHTMLNestedList(items []domain.NestedListItem, listStyle string, first bool) string
func CreateMarkDownNestedList ¶
func CreateMarkDownNestedList(items []domain.NestedListItem, listStyle, spaceLeft string) string
func HumanFileSize ¶
func IsValidStyle ¶
func LoadExternalStyleMap ¶
func LoadExternalStyleMap(path string)
func LoadStyleMap ¶
func LoadStyleMap(path string)
func MinifyAsset ¶
func MinifyContent ¶
func MinifyExternalStyle ¶
func ParseEditorJSON ¶
func PrepareData ¶
func PrepareData(el domain.EditorJSBlock) (data interface{})
func ReadJsonFile ¶
func WriteOutputFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.