Documentation
¶
Index ¶
- func CreateDir(path string) error
- func CreateFile(path string) (*os.File, error)
- func Dirname() string
- func Exists(path string) (isDir bool, exists bool, err error)
- func LowerCamelCase(s string) string
- func OnlyCreateFile(path string) error
- func Panic[T any](res T, err error) T
- func PanicMap[T any](panicFn func(error)) func(res T, err error) T
- func PanicMapVoid(panicFn func(error)) func(err error)
- func PanicVoid(err error)
- func PrintJson(v any) error
- func PrintRoutes(r chi.Router)
- func Resolve(paths ...string) string
- func UpperCamelCase(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LowerCamelCase ¶
LowerCamelCase converts snake_case to lowerCamelCase. Example: "created_by_id" -> "createdById"
func OnlyCreateFile ¶
func PanicMapVoid ¶
func PrintRoutes ¶
PrintRoutes prints all the registered routes in a given chi.Router to the console.
func UpperCamelCase ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.