stringUtils

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Capitalize

func Capitalize(s string) string

Capitalize returns the input string s with the first character converted to uppercase. If s is empty, it returns s unchanged.

func NormalizeStructFieldName

func NormalizeStructFieldName(fieldName string) string

NormalizeStructFieldName normalizes struct field names by replacing generic brackets and dots with underscores (_).

func ShouldToLower

func ShouldToLower(s string, shouldConvert bool) string

ShouldToLower returns the lowercase version of the input string s if shouldConvert is true. Otherwise, it returns s unchanged.

func Uncapitalize

func Uncapitalize(s string) string

Uncapitalize returns the input string s with the first character converted to lowercase. If s is empty, it returns s unchanged.

Types

This section is empty.

Jump to

Keyboard shortcuts

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