str

package module
v0.0.0-...-92f1187 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

README

str

Go License codecov Made by Alexey Burmistrov

Install

go get -u github.com/MrEhbr/str
Usage
import "github.com/MrEhbr/str"

str.ToCamelCase

Transform string to camel case


str.ToCamelCase("foo_bar", true) // FooBar

str.ToSnackCase

Transform string to snack case


str.ToSnackCase("Foo_bar", false) // foo_bar

License

© 2022 [Alexey Burmistrov]

Licensed under the Apache License, Version 2.0 (LICENSE). See the COPYRIGHT file for more details.

SPDX-License-Identifier: Apache-2.0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToCamelCase

func ToCamelCase(s string, upper bool) string

ToCamelCase transform string to upper or lower camel case

func ToSnackCase

func ToSnackCase(s string, upper bool) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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