utils

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplaceInAllFiles

func ReplaceInAllFiles(dirPath, oldString, newString string) error

ReplaceInAllFiles performs a find/replace in all text files in a directory (recursively)

func ReplaceInFile

func ReplaceInFile(filePath, oldString, newString string) error

ReplaceInFile replaces all occurrences of a string in a file

func ReplaceJSONField

func ReplaceJSONField(jsonStr, field, newValue string) string

ReplaceJSONField replaces a field in a JSON string with a new value

func Unzip

func Unzip(src, dest string) error

Unzip extracts a zip archive to a destination directory.

func UpdateInitGo

func UpdateInitGo(packageName, structName string) error

UpdateInitGo adds the module initialization to init.go

Types

This section is empty.

Jump to

Keyboard shortcuts

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