Skip to content

Hope to support the Multibyte field key, Value.CanSet() on reflect package #6745

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gopherbot opened this issue Nov 9, 2013 · 2 comments
Closed

Comments

@gopherbot
Copy link
Contributor

by achun.SHX:

e.g

package main

import (
    "reflect"
    "fmt"
)
type Multibyte struct{
    世界 string
}
func main() {
    a:=Multibyte{}
    v:=reflect.ValueOf(&a) 
    fmt.Println(v.Elem().Field(0).CanSet())
    // want true,but false
}
@bradfitz
Copy link
Contributor

bradfitz commented Nov 9, 2013

Comment 1:

This is the same as https://golang.org/issue/5763

Status changed to Duplicate.

Merged into issue #5763.

@bradfitz
Copy link
Contributor

bradfitz commented Nov 9, 2013

Comment 2:

This is the same as https://golang.org/issue/5763

@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants