mirror of
https://github.com/cloudnativelabs/kube-router.git
synced 2025-11-25 15:01:05 +01:00
* vendor changes from dep init * add Gopkg.lock and Gopkg.toml * delete glide.lock and glide.yaml * build gobgp from vendor
13 lines
270 B
Go
13 lines
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}
|
|
} |