util

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelToSnake

func CamelToSnake(s string) string

func ConvertToSnakeCase

func ConvertToSnakeCase(s string) string

func ConvertToUpperCamelCase

func ConvertToUpperCamelCase(s string) string

func Exec

func Exec(name string, args ...string)

func ExitAndCleanUp

func ExitAndCleanUp(path string, err error)

func ExitWithError

func ExitWithError(err error)

func GenerateAppKey

func GenerateAppKey() string

GenerateAppKey generates a random 32 byte key for AES-256 encryption

func RetrieveModuleName

func RetrieveModuleName() string

RetrieveModuleName reads the go.mod file and returns the module name.

func SnakeToCamel added in v0.0.4

func SnakeToCamel(s string) string

Types

type Discard

type Discard struct{}

Create a Discard struct that implements the io.Writer interface

func (*Discard) Write

func (d *Discard) Write(p []byte) (n int, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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