GoFrame gstr-字符串長(zhǎng)度

2022-04-11 15:26 更新

LenRune

  • 說明:?LenRune?返回?unicode?字符串長(zhǎng)度。
  • 格式:

LenRune(str string) int

  • 示例:

func ExampleLenRune() {
	var (
		str    = `GoFrame框架`
		result = gstr.LenRune(str)
	)
	fmt.Println(result)

	// Output:
	// 9
}


以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)