dip/vendor/github.com/oschwald/maxminddb-golang/set_zero_pre120.go

11 lines
147 B
Go
Raw Normal View History

2023-08-13 08:42:44 +02:00
//go:build !go1.20
// +build !go1.20
package maxminddb
import "reflect"
func reflectSetZero(v reflect.Value) {
v.Set(reflect.Zero(v.Type()))
}