Hi,

Why can you update a value in a map struct?

 // UnaddressableFieldAssign occurs when trying to assign to a struct field

        // in a map value.
        //
        // Example:
        //  func f() {
        //      m := make(map[string]struct{i int})
        //      m["foo"].i = 42
        //  }

I am reading a yaml file and want to change some values in the struct.
Thank s
-- 
DanJ

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CACHdq72hMxFUv71AB9YGNx%3DwjUWxyoth2%3DoxbzxiQhyvf1mnzg%40mail.gmail.com.

Reply via email to