Golang数组拼接为字符串

golang数组拼接为字符串

import "strings"

arr := []string{"hello","world"}

arrString := strings.Join(arr , ";")

字符串分割为数组

https://www.yiibai.com/go/golang-string-functions.html
posted @ 2020-01-20 11:49  许伟强  阅读(8373)  评论(0编辑  收藏  举报