Skip to content

Changing the fundamental data type #17

@suntong

Description

@suntong

Currently, the fundamental EasyGen driven data type is defined as:

// EgData -- EasyGen driven Data
type EgData map[interface{}]interface{}

I'm thinking to change it to map[string]interface{} instead, as it is not possible to Converting type map[string]interface {} to type map[interface {}]interface {}

https://play.golang.org/p/VU4ND_6JU_
https://golang.org/doc/faq#convert_slice_of_interface
https://groups.google.com/d/msg/golang-nuts/3pgc2cB-GFY/5Y4fikHPCAAJ

This should not cause any problem in theory, @grrtrr, would you see if any? Thx.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions