github.com/galaxyobe/gen@v0.0.0-20220910125335-392fa8f0990f/cmd/getter-gen/output_tests/structs/getter_generated.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 /* 5 Copyright 2022 Galaxyobe. 6 7 Licensed under the Apache License, Version 2.0 (the "License"); 8 you may not use this file except in compliance with the License. 9 You may obtain a copy of the License at 10 11 http://www.apache.org/licenses/LICENSE-2.0 12 13 Unless required by applicable law or agreed to in writing, software 14 distributed under the License is distributed on an "AS IS" BASIS, 15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 See the License for the specific language governing permissions and 17 limitations under the License. 18 */ 19 20 // Code generated by ___getter_gen. DO NOT EDIT. 21 22 package structs 23 24 import ( 25 builtins "github.com/galaxyobe/gen/cmd/getter-gen/output_tests/builtins" 26 ) 27 28 func (a *Alias) GetU8() builtins.Uint8 { 29 return a.U8 30 } 31 32 func (a *Alias) GetI8() builtins.Int8 { 33 return a.I8 34 } 35 36 func (a *Alias) GetU() builtins.Uint { 37 return a.U 38 } 39 40 func (a *Alias) GetI() builtins.Int { 41 return a.I 42 } 43 44 func (a *Alias) GetStrFunc() builtins.StrFunc { 45 return a.StrFunc 46 } 47 48 func (a *Alias) GetI8Func() builtins.I8Func { 49 return a.I8Func 50 } 51 52 func (a *Alias) GetU8Func() builtins.U8Func { 53 return a.U8Func 54 } 55 56 func (a *Alias) GetInt8() int8 { 57 return a.Int8 58 } 59 60 func (a *Alias) GetUint8() uint8 { 61 return a.Uint8 62 } 63 64 func (a *Alias) GetA() interface{} { 65 return a.A 66 } 67 68 func (a *Alias) GetBool() bool { 69 return a.Bool 70 } 71 72 func (a *Alias) GetByte() byte { 73 return a.Byte 74 } 75 76 func (a *Alias) GetInt16() int16 { 77 return a.Int16 78 } 79 80 func (a *Alias) GetInt32() int32 { 81 return a.Int32 82 } 83 84 func (a *Alias) GetInt64() int64 { 85 return a.Int64 86 } 87 88 func (a *Alias) GetUint16() uint16 { 89 return a.Uint16 90 } 91 92 func (a *Alias) GetUint32() uint32 { 93 return a.Uint32 94 } 95 96 func (a *Alias) GetUint64() uint64 { 97 return a.Uint64 98 } 99 100 func (a *Alias) GetFloat32() float32 { 101 return a.Float32 102 } 103 104 func (a *Alias) GetFloat64() float64 { 105 return a.Float64 106 } 107 108 func (a *Alias) GetString() string { 109 return a.String 110 } 111 112 func (a *Alias) GetBytes() []byte { 113 return a.Bytes 114 } 115 116 func (a *Alias) GetBoolP() *bool { 117 return a.BoolP 118 } 119 120 func (a *Alias) GetByteP() *byte { 121 return a.ByteP 122 } 123 124 func (a *Alias) GetIntP() *int { 125 return a.IntP 126 } 127 128 func (a *Alias) GetUintP() *uint { 129 return a.UintP 130 } 131 132 func (a *Alias) GetBytesP() *[]byte { 133 return a.BytesP 134 } 135 136 func (a *Alias) GetFloat64P() *float64 { 137 return a.Float64P 138 } 139 140 func (a *Alias) GetStringP() *string { 141 return a.StringP 142 } 143 144 func (s *Structs) GetB() byte { 145 return s.b 146 } 147 148 func (s *Structs) GetU() uint8 { 149 return s.u 150 } 151 152 func (s *Structs) GetI() int8 { 153 return s.i 154 } 155 156 func (s *Structs) GetString() string { 157 return s.String 158 } 159 160 func (s *Structs) GetBuiltins() builtins.Builtins { 161 return s.Builtins 162 } 163 164 func (s *Structs) GetBuiltins1() builtins.Builtins { 165 return s.Builtins1 166 } 167 168 func (s *Structs) GetBuiltins2() *builtins.Builtins { 169 return s.Builtins2 170 } 171 172 func (s *Structs) GetUser() User { 173 return s.User 174 } 175 176 func (s *Structs) GetUser2() User { 177 return s.User2 178 } 179 180 func (s *Structs) GetUser3() *User { 181 return s.User3 182 } 183 184 func (s *Structs) GetAge() Age { 185 return s.Age 186 } 187 188 func (u *User) GetName() string { 189 return u.Name 190 } 191 192 func (u *User) GetAge() Age { 193 return u.Age 194 } 195 196 func (u *UserInfo) GetName() string { 197 return u.Name 198 } 199 200 func (u *UserInfo) GetAge() Age { 201 return u.Age 202 }