naming

package
v0.68.2 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: Apache-2.0 Imports: 3 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

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