ä»åãå°ãã¿ã§ãéããã¦ããã¾ãã 2015å¹´ã«ãæååé£çµã¯ã©ããéãï¼ãã¨ããè¨äºãæ¸ããã ããããæåé£çµã«é¢ãã¦ã©ãå¤ãã£ãã®ãã ç¹ã« Go 1.10 㧠strings.Builder ã追å ããã¦ããã®ã§ï¼ãã®è¾ºãå«ãã¦åæ¤è¨¼ãã¦ã¿ãã ä»åæ¤è¨¼ããã³ã¼ãã¯ä»¥ä¸ã®éãã package join import ( "bytes" "strings" ) var sz8k = 8 * 1024 func JoinStringPlus(ss []string) { var str string for _, s := range ss { str += s + "\n" } } func JoinStringJoin(ss []string) { strings.Join(ss, "\n") } func JoinStringByteAppend(ss []string) {
{{#tags}}- {{label}}
{{/tags}}