utils

package
v0.0.0-...-b901c12 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckGitConfig

func CheckGitConfig(key string) (bool, error)

func CreateDirectory

func CreateDirectory(path string) error

func CreateFileFromTemplate

func CreateFileFromTemplate(path string, template *template.Template, data any) error

func CreateGitInitialCommit

func CreateGitInitialCommit(appDir string) error

func ExecuteCmd

func ExecuteCmd(name string, args []string, dir string) error

func GetGoModName

func GetGoModName(appDir string) (string, error)

func GetTemplVersion

func GetTemplVersion(appDir string) (string, error)

func GitAddAllFiles

func GitAddAllFiles(appDir string) error

func GoFmt

func GoFmt(appDir string) error

func GoGetPackage

func GoGetPackage(appDir string, packageName string) error

func GoTidy

func GoTidy(appDir string) error

func InitGit

func InitGit(appDir string) error

func InitGoMod

func InitGoMod(projectName string, appDir string) error

func MergeFileFromTemplate

func MergeFileFromTemplate(path string, template *template.Template, data any) error

func MergeYAMLFromString

func MergeYAMLFromString(path string, sourceYAMLString string) error

func NixFlakeUpdate

func NixFlakeUpdate(appDir string) error

func PnpmInstall

func PnpmInstall(appDir string) error

func TemplGenerate

func TemplGenerate(appDir string) error

func TemplateToString

func TemplateToString(template *template.Template, data any) (string, error)

func VerifyCmd

func VerifyCmd(cmd string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳