Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc 函数增强 #92

Closed
xushiwei opened this issue May 27, 2016 · 2 comments
Closed

doc 函数增强 #92

xushiwei opened this issue May 27, 2016 · 2 comments
Assignees
Milestone

Comments

@xushiwei
Copy link
Member

当前:

>>> doc(os.create)
func(string) (*os.File, error)

>>> doc("os.create")
string

可以考虑加强下 doc("os.create") 这种情况,打印该函数的完整帮助。

@xushiwei xushiwei added this to the qlang.v3 milestone May 27, 2016
@visualfc
Copy link
Member

#93
使用godoc获取pkg,如果不为gopkg则直接用原doc输出。

@visualfc
Copy link
Member

>>>doc("os.create")
use 'godoc cmd/os' for documentation on the os command 

type File struct {
    // contains filtered or unexported fields
}
    File represents an open file descriptor.

func Create(name string) (*File, error)
    Create creates the named file with mode 0666 (before umask), truncating
    it if it already exists. If successful, methods on the returned File can
    be used for I/O; the associated file descriptor has mode O_RDWR. If
    there is an error, it will be of type *PathError.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants