naming

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package naming contains some utilities for generating names.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterDot added in v0.52.0

func AfterDot(s string) string

AfterDot returns the part of the string after the first dot.

If there is no dot in the string or dot is the first character, the whole string is returned.

func Capitalize

func Capitalize(s string) string

Capitalize converts first character to upper.

If the string is invalid UTF-8 or empty, it is returned as is.

func Rule

func Rule(part string) (string, bool)

Rule returns the rule for the given part, if any. Otherwise, it returns ("", false).

Types

This section is empty.

Jump to

Keyboard shortcuts

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