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?
test []int
Should work.Your slice does need to adhere to some type.