cgstrings

package
v3.116.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 7

Documentation

Overview

package cgstrings has various string processing functions that are useful during code generation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Camel

func Camel(s string) string

Camel converts s to camelCase.

func ModifyStringAroundDelimeter

func ModifyStringAroundDelimeter(str, delim string, modifyNext func(next string) string) string

func Unhyphenate

func Unhyphenate(str string) string

Unhyphenate removes all hyphens from s, then uppercasing the letter following each hyphen. For example, "abc-def-ghi" becomes "abcDefGhi".

func UppercaseFirst

func UppercaseFirst(s string) string

UppercaseFirst uppercases the first letter of s. E.g. "abc" -> "Abc"

Types

This section is empty.

Jump to

Keyboard shortcuts

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