Contact: aviboots(AT)netvision.net.il
41,314 questions
53,829 answers
573 users
package main import ( "fmt" "bytes" ) func main() { slice := []byte{'G', 'O', 'L', 'A', 'N', 'G'} slicer := bytes.Repeat(slice, 2) fmt.Printf("%s", slicer) } /* run: GOLANGGOLANG */
package main import ( "fmt" "bytes" ) func main() { slice := []byte{'G', 'O', 'L', 'A', 'N', 'G'} slicer := bytes.Repeat(slice, 3) fmt.Printf("%s", slicer) } /* run: GOLANGGOLANGGOLANG */
package main import ( "fmt" "bytes" ) func main() { slicer := bytes.Repeat([]byte("GoLang"), 4) fmt.Printf("%s", slicer) } /* run: GoLangGoLangGoLangGoLang */