golang type aliases for documentation purposes

后端 未结 0 857
悲&欢浪女
悲&欢浪女 2020-11-28 22:13

Is it considered good practice to use type aliases to make go code more self documenting? An example:

type User struct {
    // user stuff
}

type Username =          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题