Skip to content

Commit f056f59

Browse files
committed
Adds short hand way to declare & initialize slices
1 parent ef7a7ff commit f056f59

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

codes/ch6_slices/short-hand-way.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package main
2+
3+
func main() {
4+
5+
/**
6+
* Short hand way to declare and initialize slices
7+
*/
8+
employee := []string {
9+
"Ashwin", "Kumar", "Saju", "Ajay"
10+
}
11+
12+
}

0 commit comments

Comments
 (0)