utils

package
v0.0.0-...-4f71f7c Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSlashOnPath

func AddSlashOnPath(path string) string

func CapitalizeFirstLetter

func CapitalizeFirstLetter(s string) string

func ConcatDirPath

func ConcatDirPath(dir ...string) string

func GetGoFilesInPath

func GetGoFilesInPath(path string) ([]string, error)

func GetGoModName

func GetGoModName(gomodPath string) string

func GetImportPathBasedOnProjectPath

func GetImportPathBasedOnProjectPath(projectPath, gomodName string) string

func GetLastDirPath

func GetLastDirPath(path string) string

func GetProjectPath

func GetProjectPath(path string, pointingPath string) string

func Gitinit

func Gitinit(projectPath string) error

func GoFormat

func GoFormat(path, goModName string) error

func GoGenerateRun

func GoGenerateRun(projectPath string) error

func GoModInit

func GoModInit(projectPath, goModName string) error

func IsFolderHasGoMod

func IsFolderHasGoMod(path string) bool

func ReadFile

func ReadFile(filePath string) (string, error)

func RemoveOnlySlashPath

func RemoveOnlySlashPath(dirPaths []string) []string

func RemoveSlashFirstAndLast

func RemoveSlashFirstAndLast(path string) string

Types

This section is empty.

Directories

Path Synopsis
Currently this code is unused I still don't know to use my own decls data type here but I created this file
Currently this code is unused I still don't know to use my own decls data type here but I created this file

Jump to

Keyboard shortcuts

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