caser

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: MPL-2.0 Imports: 4 Imported by: 0

README

snaker

A case conversion library that helps to convert strings ToSnake, ToCamel, ToPascal cases. It takes into account generic acronyms, and has the functionality to customize a list of acronyms for custom needs

Based on https://github.com/serenize/snaker

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureInitialisms

func ConfigureInitialisms(c map[string]bool)

func ToCamel

func ToCamel(s string) string

ToCamel returns a string converted from snake case to camel case

func ToPascal

func ToPascal(s string) string

ToPascal returns a string converted from snake case to pascal case

func ToSnake

func ToSnake(s string) string

ToSnake converts a given string to 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