Documentation ¶
Index ¶
- Constants
- func Assert(cond bool, errMsg string)
- func CopyFileToZip(w *zip.Writer, dst string, src string) error
- func CreateTemplate(name string, t string) *template.Template
- func CreateWorkDir(path *string, clean bool) (bool, error)
- func IsReadableFile(path string) (string, error)
- func IsWritableFile(path string) (string, error)
- func Must(err error) func(doing string)
- func Must1[T any](obj T, err error) func(doing string) T
- func Must2[T1 any, T2 any](obj1 T1, obj2 T2, err error) func(doing string) (T1, T2)
- func NameWithoutExt(filename string) string
- func ReplaceExt(path string, ext string) string
- func WriteFileToZip(w *zip.Writer, path string, tm *template.Template, data any) error
Constants ¶
View Source
const AppVersion = "v0.4.0"
Variables ¶
This section is empty.
Functions ¶
func IsReadableFile ¶
func IsWritableFile ¶
func NameWithoutExt ¶
func ReplaceExt ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.