Posted on 10th September 2024|16 views
How can I create an empty slice in Golang?
Posted on 10th September 2024| views
package main
Import ("fmt"
"reflect")
func main()
{
var intEmptySlice []int
var strEmptySlice []string
fmt.Println(reflect.ValueOf(intEmptySlice).Kind())
fmt.Println(reflect.ValueOf(strEmptySlice).Kind())
}