utils

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePath

func CreatePath(path string) error

func ExistsPath

func ExistsPath(path string) bool

func GetGoImportsFromFile

func GetGoImportsFromFile(data string) []string

func GetGoPackageNameForDir

func GetGoPackageNameForDir(path string) (string, error)

func GetGoPackageNameForFile

func GetGoPackageNameForFile(path, fileName string) (string, error)

func ReadFile

func ReadFile(filePath string) ([]byte, error)

func RemoveFile

func RemoveFile(filePath string) error

RemoveFile - remove file

func RemoveFiles

func RemoveFiles(dir, nameSuffix string) error

RemoveFiles - remove all files in dir with name suffix

func SaveFile

func SaveFile(path, fileName string, data []byte) error

func ToPascalCase

func ToPascalCase(s string) string

func UpdateGoImports

func UpdateGoImports(data []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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