forked from TrueCloudLab/lego
6004e599ed
* feat: add dep configuration files. * chore: add vendor folder. * refactor: update Dockerfile. * review: remove git from Dockerfile. * review: remove RUN apk. * review: dep status. * feat: added .dockerignore
13 lines
No EOL
270 B
Go
13 lines
No EOL
270 B
Go
package reflect2
|
|
|
|
type safeStructType struct {
|
|
safeType
|
|
}
|
|
|
|
func (type2 *safeStructType) FieldByName(name string) StructField {
|
|
field, found := type2.Type.FieldByName(name)
|
|
if !found {
|
|
panic("field " + name + " not found")
|
|
}
|
|
return &safeField{StructField: field}
|
|
} |