strcase

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package strcase implements functions to convert a camelCase UTF-8 string into various cases.

New delimiters will be inserted based on the following transitions:

  • On any change from lowercase to uppercase letter.
  • On any change from number to uppercase letter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delimited

func Delimited(s string, d rune) string

Delimited converts a string to delimited.lower.case, here using `.` as delimiter.

func ScreamingDelimited

func ScreamingDelimited(s string, d rune) string

ScreamingDelimited converts a string to DELIMITED.UPPER.CASE, here using `.` as delimiter.

func ScreamingSnake

func ScreamingSnake(s string) string

ScreamingSnake converts a string to SCREAMING_SNAKE_CASE.

func Snake

func Snake(s string) string

Snake converts a 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