flag icon indicating copy to clipboard operation
flag copied to clipboard

生成接口代码

Open guonaihong opened this issue 5 years ago • 0 comments

现在代码里面,每加一种类型都要实现如下接口

type Value interface {
        String() string
        Set(string) error
}

这种代码无趣,还很容易出错。有没有方法生产各种类型,实现这种接口代码

guonaihong avatar Jun 22 '19 12:06 guonaihong