Question : append golang example
Answered by : restu-wahyu-saputra
numb := []string{}
res := append(numb, "1", "2")
fmt.Println(res)
Source : | Last Update : Sat, 09 Oct 21
Question : golang append
Answered by : restu-wahyu-saputra
import "fmt"
func Render() []int32 { arr := []int32{} for i := 0; i < 5; i++ { arr = append(arr, int32(i)) } return arr
}
func main() { res := Render() fmt.Println(res)
}
Source : | Last Update : Sat, 17 Sep 22