reflect.Value.CanSet (method)
23 uses
reflect (current package)
value.go#L322: func (v Value) CanSet() bool {
encoding/binary
binary.go#L557: if v := v.Field(i); v.CanSet() || t.Field(i).Name != "_" {
binary.go#L622: if v := v.Field(i); v.CanSet() || t.Field(i).Name != "_" {
encoding/gob
decoder.go#L201: } else if !v.CanSet() {
encoding/json
decode.go#L460: if decodingNull && v.CanSet() {
decode.go#L721: if !subv.CanSet() {
github.com/aws/aws-sdk-go/aws/awsutil
copy.go#L45: if dst.Kind() == reflect.Ptr && dst.Elem().CanSet() {
copy.go#L47: } else if dst.CanSet() {
copy.go#L52: if dst.CanSet() && !src.IsNil() {
copy.go#L73: if srcVal.IsValid() && dstVal.CanSet() {
github.com/aws/aws-sdk-go/private/protocol
idempotency.go#L45: if v.IsNil() && v.CanSet() {
idempotency.go#L52: if !v.CanSet() {
github.com/ghodss/yaml
fields.go#L44: if v.Elem().Kind() != reflect.Ptr && decodingNull && v.CanSet() {
fields.go#L48: if v.CanSet() {
github.com/go-git/gcfg
set.go#L42: if !v.FieldByName(fieldName).CanSet() {
github.com/imdario/mergo
merge.go#L120: if dst.CanSet() {
merge.go#L134: if dst.CanSet() {
merge.go#L188: if dst.CanSet() {
merge.go#L201: if dst.CanSet() {
merge.go#L213: if dst.CanSet() && (overwrite || isEmptyValue(dst)) {
merge.go#L232: if dst.CanSet() {
merge.go#L244: if dst.CanSet() {
merge.go#L317: if !vDst.CanSet() {
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |