parse

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(conf cfg.Config, in []byte, data map[string]string) ([]byte, error)

func ExecuteFiles

func ExecuteFiles(conf cfg.Config, inputRootPath, outputRootPath string, data map[string]string) (map[string]File, error)

* ./abc/test.txt ./abc/test2.txt ./abc/def/test2.txt

ExecuteFiles(".", "dist", data) ->

dist/abc/test.txt
dist/abc/test2.txt
dist/abc/def/test.txt

ExecuteFiles(".", "dist") -> ExecuteFiles("./abc", "dist") -> ["dist/abc/test.txt", "dist/abc/test2.txt", ...]

TODO: impl

Types

type File

type File struct {
	Data []byte
	Perm os.FileMode
}

Jump to

Keyboard shortcuts

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