Re: [go-nuts] make an empty slice

2019-06-06 Thread Marvin Renich
* sasikala tholisam [190606 09:49]: > > test []Exam > > type Exam struct{ > Time uint32 > LogType uint32 > Data [32]byte > } > > test is a slice of []Exam..It should be an empty slice...how to make test > as empty? After changing the first line to var test []Exam your code will

[go-nuts] make an empty slice

2019-06-06 Thread Mark Bauermeister
You mean a slice that is not of type Exam? test []int Should work. Your slice does need to adhere to some type. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[go-nuts] make an empty slice

2019-06-06 Thread sasikala tholisam
test []Exam type Exam struct{ Time uint32 LogType uint32 Data [32]byte } test is a slice of []Exam..It should be an empty slice...how to make test as empty? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group