str

package module
v0.0.0-...-7d6947b Latest Latest
Warning

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

Go to latest
Published: May 21, 2025 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 ToKebabCase

func ToKebabCase(s string, upper bool) string

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