Source File
safe_type.go
Belonging Package
github.com/modern-go/reflect2
package reflect2import ()type safeType struct {reflect.Typecfg *frozenConfig}func ( *safeType) () interface{} {return reflect.New(.Type).Interface()}func ( *safeType) () unsafe.Pointer {panic("does not support unsafe operation")}func ( *safeType) () Type {return .cfg.Type2(.Type.Elem())}func ( *safeType) () reflect.Type {return .Type}func ( *safeType) ( unsafe.Pointer) interface{} {panic("does not support unsafe operation")}func ( *safeType) ( Type) bool {return .Type.Implements(.Type1())}func ( *safeType) () uintptr {panic("does not support unsafe operation")}func ( *safeType) ( interface{}) interface{} {return reflect.Indirect(reflect.ValueOf()).Interface()}func ( *safeType) ( unsafe.Pointer) interface{} {panic("does not support unsafe operation")}func ( *safeType) () bool {panic("does not support unsafe operation")}func ( *safeType) () bool {return IsNullable(.Kind())}func ( *safeType) ( interface{}) bool {if == nil {return true}return reflect.ValueOf().Elem().IsNil()}func ( *safeType) ( unsafe.Pointer) bool {panic("does not support unsafe operation")}func ( *safeType) ( interface{}, interface{}) {reflect.ValueOf().Elem().Set(reflect.ValueOf().Elem())}func ( *safeType) ( unsafe.Pointer, unsafe.Pointer) {panic("does not support unsafe operation")}func ( *safeType) ( Type) bool {return .Type1().AssignableTo(.Type1())}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |