Exercises & activities from the go workshop provided by Packt: https://courses.packtpub.com/courses/go
 

11 lines
148 B

package main
import "fmt"
func main() {
s := []string{"Good", "Good", "Bad", "Good", "Good"}
s = append(s[:2], s[3:]...)
fmt.Println(s)
}