join slice to string golang
fmt.Println(strings.Join(reg[:], ","))
join slice to string golang
fmt.Println(strings.Join(reg[:], ","))
golang slice string
First of all, you should really read about strings, bytes and runes in Go.
And here is how you can achieve what you want: Go playground (I was not able to properly paste arabic symbols, but if Chinese works, arabic should work too).
s := "abcdefghijklmnop"
fmt.Println(s[2:9])
s = "something which is display"
fmt.Println(string([]rune(s)[2:9]))
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us