go-hep.org/x/hep@v0.38.1/brio/cmd/brio-gen/internal/gen/_test/pkg/pkg.go (about) 1 // Copyright ©2018 The go-hep Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package pkg 6 7 import "time" 8 9 type T1 struct { 10 b bool 11 u uint 12 u8 uint8 13 u16 uint16 14 u32 uint32 15 u64 uint64 16 i int 17 i8 int8 18 i16 int16 19 i32 int32 20 i64 int64 21 f32 float32 22 f64 float64 23 c64 complex64 24 c128 complex128 25 str string 26 rune rune 27 bs []byte 28 29 arri64 [10]int64 30 arrTime [10]time.Time // implements encoding.Binary(Un)Marshaler 31 slii64 []int64 32 sliTime []time.Time // implements encoding.Binary(Un)Marshaler 33 ptri64 *int64 34 35 t2 T2 36 t2s []T2 37 t2ptrs []*T2 38 39 data struct { 40 f64 float64 41 } 42 43 myU16 U16 44 } 45 46 type T2 struct { 47 ID int64 48 } 49 50 type T3 struct { 51 Time time.Time // implements encoding.Binary(Un)Marshaler 52 } 53 54 type U16 uint16