@@ -9,13 +9,13 @@ import (
99)
1010
1111type wordMetadata struct {
12- bitFields []* bitFieldMetadata
12+ bitFields []bitFieldMetadata
1313 lengthInBits uint
1414 lengthInBytes int
1515}
1616
1717func newWordMetadataFromStructFieldReflection (reflection reflect.StructField ) (
18- word * wordMetadata , e error ,
18+ word wordMetadata , e error ,
1919) {
2020 const (
2121 tagKey = "word"
@@ -79,8 +79,8 @@ func newWordMetadataFromStructFieldReflection(reflection reflect.StructField) (
7979 return
8080 }
8181
82- word = & wordMetadata {
83- bitFields : make ([]* bitFieldMetadata ,
82+ word = wordMetadata {
83+ bitFields : make ([]bitFieldMetadata ,
8484 reflection .Type .NumField (),
8585 ),
8686 lengthInBits : wordLength ,
@@ -114,9 +114,9 @@ func newWordMetadataFromStructFieldReflection(reflection reflect.StructField) (
114114 return
115115}
116116
117- func (m * wordMetadata ) marshal (reflection reflect.Value ) (bytes []byte ) {
117+ func (m wordMetadata ) marshal (reflection reflect.Value ) (bytes []byte ) {
118118 var (
119- bitField * bitFieldMetadata
119+ bitField bitFieldMetadata
120120 bitFieldUint64 uint64
121121 i int
122122 wordUint64 uint64
@@ -139,7 +139,7 @@ func (m *wordMetadata) marshal(reflection reflect.Value) (bytes []byte) {
139139 return
140140}
141141
142- func (m * wordMetadata ) unmarshal (bytes []byte , reflection reflect.Value ) {
142+ func (m wordMetadata ) unmarshal (bytes []byte , reflection reflect.Value ) {
143143 var (
144144 bitFieldBytes []byte
145145 i int
0 commit comments