github.com/benma/gogen@v0.0.0-20160826115606-cf49914b915a/cmd/gounmarshalmap/README.md (about)

     1  # gounmarshalmap
     2  
     3  Given a struct S outputs function that unmarshals a
     4  `map[string]interface{}` into the struct. e.g:
     5  
     6  ```bash
     7  $ gounmarshal S
     8  ```
     9  
    10  will output
    11  
    12  ```go
    13  (s *S) UnmarshalMap(m map[string]interface{}) (error) {
    14    // autogenerated code
    15  }
    16  ```
    17