strutils

package
v0.0.0-...-189b0d5 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatCamelCaseText

func FormatCamelCaseText(str string) string

FormatCamelCaseText 将一个驼峰命名的函数名拆开来 将第二个开始的大写字母拆成小写 + 空格 还得判断是否全为大写

func FormatInputBoxText

func FormatInputBoxText(formatText string) string

func ToJson

func ToJson(msg interface{}) string

Types

type Lang

type Lang string
const (
	English Lang = "english"
	Chinese Lang = "chinese"
	Unknown Lang = "unknown"
)

func DetectLanguage

func DetectLanguage(text string) Lang

DetectLanguage 判断输入的是否是中文

Jump to

Keyboard shortcuts

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