camelcase

package
v0.0.0-...-1e877d2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelCase

func CamelCase(s string) string

* 大写驼峰转小写,使用 "_" 隔开 log.Println(CamelCase("AAAA")) log.Println(CamelCase("IconUrl")) log.Println(CamelCase("iconUrl")) log.Println(CamelCase("parentId")) log.Println(CamelCase("a9b9Ba")) log.Println(CamelCase("_An"))

res : demo

a_a_a_a
icon_url
icon_url
parent_id
a9b9ba
Xan

Types

This section is empty.

Jump to

Keyboard shortcuts

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