Skip to content

Make runnable Examples work #590

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

Merged
merged 13 commits into from
Feb 27, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
compiler/natives/src: Fix package name; gofmt.
  • Loading branch information
dmitshur committed Feb 27, 2017
commit 35de0ceb1d8f6c65d1a1794d657f1aa7369ece8c
4 changes: 2 additions & 2 deletions compiler/natives/src/net/http/cookiejar/example_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// +build js

package cookiejar
package cookiejar_test

func ExampleNew() {
// network access not supported by GopherJS, and this test depends on httptest.NewServer
// network access not supported by GopherJS, and this test depends on httptest.NewServer
}
6 changes: 3 additions & 3 deletions compiler/natives/src/reflect/example_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// +build js

package reflect
package reflect_test

func ExampleStructOf() {
// GopherJS does not implement reflect.addReflectOff needed for this test.
// See https://github.com/gopherjs/gopherjs/issues/499
// GopherJS does not implement reflect.addReflectOff needed for this test.
// See https://github.com/gopherjs/gopherjs/issues/499
}