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

js: Point to new location of Interface conversion details. #623

Merged
merged 1 commit into from
Apr 21, 2017

Conversation

dmitshur
Copy link
Member

When the "See GopherJS' README for details." phrase was added in 88f12aa, the JavaScript <-> Go conversion table was in README. It was moved in c6e849f to the package comment of js package.

Fixes #622.

When the "See GopherJS' README for details." phrase was added in 88f12aa,
the JavaScript <-> Go conversion table was in README.
It was moved in c6e849f to the package comment of js package.

Fixes #622.
@dmitshur dmitshur requested a review from neelance April 10, 2017 15:27
@@ -73,7 +73,7 @@ func (o *Object) Uint64() uint64 { return o.object.Uint64() }
// Float returns the object converted to float64 according to JavaScript type conversions (parseFloat).
func (o *Object) Float() float64 { return o.object.Float() }

// Interface returns the object converted to interface{}. See GopherJS' README for details.
// Interface returns the object converted to interface{}. See table in package comment for details.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would "package documentation" be better? Still approved.

Copy link
Member Author

@dmitshur dmitshur Apr 10, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm worried that "package documentation" would mean all of the documentation, it's not very specific.

I wanted to refer to the package comment – the comment on package declaration – which is just the top-most section of package documentation, where the table is contained.

From https://blog.golang.org/godoc-documenting-go-code:

Comments on package declarations should provide general package documentation. These comments can be short, like the sort package's brief description:

// Package sort provides primitives for sorting slices and user-defined
// collections.
package sort

They can also be detailed like the gob package's overview. That package uses another convention for packages that need large amounts of introductory documentation: the package comment is placed in its own file, doc.go, which contains only those comments and a package clause.

When writing package comments of any size, keep in mind that their first sentence will appear in godoc's package list.

Emphasized relevant phrases used. What do you think?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@neelance Ping. Is the above convincing enough?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's been a few days, and I still haven't heard back on my comment above. Since this has approval, I'll assume it's convincing and merge this in order to make progress.

If there's anything that can be improved or needs to be followed up, another PR can be made.

@dmitshur dmitshur merged commit 69f530d into master Apr 21, 2017
@dmitshur dmitshur deleted the update-js-interface-doc branch April 21, 2017 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants