helper

package
v0.0.0-...-7c7107e Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGoModNotFound = errors.New("go.mod file is not found in the directory and it's parents")
)

Functions

func ExitWithError

func ExitWithError(err error, usage string)

func ParseFieldTag

func ParseFieldTag(tagName string, tagValue string) ([]string, error)

func ResolveGoImportPath

func ResolveGoImportPath(dir string) (string, error)

ResolveGoImportPath resolves directry path to go import statement path.

func ToLowerCamleCase

func ToLowerCamleCase(s string) string

ToLowerCamleCase converts the string to the one by camlCase

func ToSnakeCase

func ToSnakeCase(s string) string

ToSnakeCase converts the string to the one by snake case.

Types

This section is empty.

Jump to

Keyboard shortcuts

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