utils

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(files map[string]string, fs embed.FS, m any) error

func Inject

func Inject(files map[string]InjectFile, fs embed.FS, m any) error

func IsDir

func IsDir(dir string) bool

func IsFile

func IsFile(path string) bool

func IsTplFile

func IsTplFile(path string) bool

func TplToGo

func TplToGo(path string) string

Types

type InjectFile

type InjectFile struct {
	Target string
	Type   uint
}

0: InjectHere 1: InjectInterfaceHere 2: holding

type InjectInterface

type InjectInterface interface {
	InjectReset()
	InjectSet(uint, string)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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