(kvMap map[string]ast.Constant)
| 170 | } |
| 171 | |
| 172 | func makeStruct(kvMap map[string]ast.Constant) ast.Constant { |
| 173 | constMap := make(map[*ast.Constant]*ast.Constant) |
| 174 | for k, v := range kvMap { |
| 175 | key := mustName("/" + k) |
| 176 | val := v |
| 177 | constMap[&key] = &val |
| 178 | } |
| 179 | return *ast.Struct(constMap) |
| 180 | } |
no test coverage detected