* 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
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
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