Versions in this module Expand all Collapse all v0 v0.1.0 Sep 14, 2023 Changes in this version + var DefaultFuncMap = template.FuncMap + func ToCamelCase(s string) string + func ToKebabCase(s string) string + func ToPascalCase(s string) string + func ToSnakeCase(s string) string + type DefaultGitClient struct + Token string + func NewDefaultGitClient(defaultBranch string, token string) *DefaultGitClient + func (d *DefaultGitClient) Checkout(path, ref string) error + func (d *DefaultGitClient) Clone(host, owner, repo, dest string) error + func (d *DefaultGitClient) DefaultBranch() string + type DepInfo struct + Block string + Host string + Owner string + Path string + Repo string + Tag string + func ParseDepURL(rawURL string) (*DepInfo, error) + func (d DepInfo) String() string + type Executor struct + func NewExecutor(gitClient GitClient) *Executor + func (e *Executor) EmbedFunc(remotePath string, data interface{}) (string, error) + func (e *Executor) ImportFunc(outputDir string) func(repoAndTag, destPath string, data interface{}) (string, error) + func (e *Executor) ParsePath(inputPath string) error + func (e *Executor) WalkAndProcessDir(inputDir, outputDir string, data interface{}) error + func (e Executor) Render(name string, data interface{}) (string, error) + func (e Executor) StringRender(templateString string, data interface{}) (string, error) + type GitClient interface + Checkout func(path, branch string) error + Clone func(host, owner, repo, dest string) error + DefaultBranch func() string