generators

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirExist

func DirExist(path string) (bool, error)

func FileExist

func FileExist(path string) (bool, error)

func IsGitRepo

func IsGitRepo(path string) error

Types

type Config

type Config struct {
	Server string
	Repo   string
	Token  string
	User   string
}

type GeneratedFilesContent

type GeneratedFilesContent map[string]string

type Generator

type Generator interface {
	GenerateFilesContent() (GeneratedFilesContent, error)
	Generate(pathToTemplates string, overwrite bool) error
}

func NewGenerator

func NewGenerator(cfg *Config, log *zerolog.Logger, dfs fs.FS) (Generator, error)

Jump to

Keyboard shortcuts

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