utils

package
v0.0.0-...-c5bda25 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: MIT Imports: 7 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 CreateDunderInits

func CreateDunderInits(projectPath string, pathToCreate ...string) error

func CreatePyEnv

func CreatePyEnv(projectName string, appDir string) error

func ExecuteCmd

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

func GetRootDir

func GetRootDir(moduleName string) string

GetRootDir returns the project directory name from the module path. Returns the last token by splitting the moduleName with /

func GoFmt

func GoFmt(appDir string) error

func GoGetPackage

func GoGetPackage(appDir string, packages []string) error

func GoTidy

func GoTidy(appDir string) error

func InitGoMod

func InitGoMod(projectName string, appDir string) error

func InstallRequirements

func InstallRequirements(projectName string, appDir string) error

func ValidateModuleName

func ValidateModuleName(moduleName string) bool

ValidateModuleName returns true if it's a valid module name. It allows any number of / and . characters in between.

Types

This section is empty.

Jump to

Keyboard shortcuts

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