package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Nov 28, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package snake provides functions for converting strings between camelCase
and snake_case formats.
ToLower converts a camelCase string to a lowercase snake_case string.
For example, "fooBar" is converted to "foo_bar", and so is "FOOBar". Note
that digits do not induce transitions, so "foo1" becomes "FOO1".
ToUpper converts a camelCase string to an uppercase SNAKE_CASE string.
For example, "fooBar" is converted to "FOO_BAR", and so is "FOOBar". Note
that digits do not induce transitions, so "foo1" becomes "FOO1".
Source Files
¶
Click to show internal directories.
Click to hide internal directories.