Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

征集 NewT 排序方式 #1

Closed
achun opened this issue Jul 23, 2016 · 3 comments
Closed

征集 NewT 排序方式 #1

achun opened this issue Jul 23, 2016 · 3 comments

Comments

@achun
Copy link
Member

achun commented Jul 23, 2016

官方文档对

NewT() T
NewT() *T
NewT() (T,error)

这样的函数和 T 的定义排序到一起, 我们是否要简化这种排序, 即与类型定义分离,当做普通函数进行排序.

@chai2010
Copy link
Member

名字不一样吧,根据名字排呢

@achun
Copy link
Member Author

achun commented Jul 26, 2016

@chai2010 也许是我描述不够清楚
官方生成的文档排序类似这样

type O struct{}
NewO() (*O,error)
type T struct{}
NewT() (*T,error)

即按照函数第一返回值的类型和 type 类型排在一起了.
我们是否也要支持这种排序?

@achun
Copy link
Member Author

achun commented Sep 14, 2016

最终还是按名字排序了

@achun achun closed this as completed Sep 14, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants