go add to slice
package main
import "fmt"
func main() {
// Step 1: Create a slice
mySlice := []int{1, 2, 3, 4, 5}
// Step 2: Display the original slice
fmt.Println("Original Slice:", mySlice)
// Step 3: Add an element to the slice using the append function
mySlice = append(mySlice, 6)
// Step 4: Display the modified slice after adding the element
fmt.Println("Modified Slice:", mySlice)
}