2016-12-06から1日間の記事一覧
Golangでスライス型にスライス型をappendする。 s1 := []string{"aa", "bb", "cc"} s2 := []string{"dd", "ee", "ff"} s1 = append(s1, s2) としてgo runすると cannot use r (type []string) as type string in append とエラーしてしまう。[]stringにappen…
Golangでスライス型にスライス型をappendする。 s1 := []string{"aa", "bb", "cc"} s2 := []string{"dd", "ee", "ff"} s1 = append(s1, s2) としてgo runすると cannot use r (type []string) as type string in append とエラーしてしまう。[]stringにappen…