strutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2025 License: MIT Imports: 2 Imported by: 3

README

strutil 字符串处理工具

格式转换

  • strutil.Snake(str) 驼峰转成蛇形字符串。
    • XxYy --> xx_yy
    • AaBB --> aa_bb
    • HTMLElement -> html_element
  • strutil.Camel(str) 蛇形转成驼峰字符串
    • xx_yy --> XxYy
    • XML_http_request --> XMLHttpRequest

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Camel

func Camel(s string) string

Camel 转成驼峰字符串。 xx_yy to XxYy

func Snake

func Snake(s string) string

Snake 转成蛇形字符串。 XxYy to xx_yy , XxYY to xx_yy

Types

This section is empty.

Jump to

Keyboard shortcuts

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