Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Go 1.17 support #1043

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 50 commits into from
Sep 18, 2021
Merged
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
a69a95d
Bump Upstream Go version to 1.17rc1
flimzy Jul 22, 2021
5e8e181
Update third-party dependencies
flimzy Jul 29, 2021
c596904
Apply 'go fmt -w -s .' to conform to 1.17 standards
flimzy Jul 22, 2021
7517cba
Set runtime.Version() output as a constant for now
flimzy Jul 22, 2021
21b4595
math/rand: Rename test package from `rand` to `rand_test` to match up…
flimzy Jul 29, 2021
c8a1588
reflect: New implementation of `New`
flimzy Jul 29, 2021
1b42d68
ed25519: Disable some tests
flimzy Jul 29, 2021
845d590
Disable tests for broken packages:
flimzy Jul 22, 2021
b4beee2
Add (failing) test for slice-to-array-pointer conversion added in Go …
flimzy Jul 29, 2021
b153701
Copy 1.16's version of *os.File.WriteString, which doesn't use unsafe
flimzy Aug 5, 2021
5a893b7
Fix a few doc typos, and tighten up some code a bit
flimzy Aug 5, 2021
0c5d57d
Hack around go/build.defaultToolTags
flimzy Aug 5, 2021
9680b1b
Disable some fixedbug tests that don't work in GopherJS
flimzy Aug 5, 2021
02663f3
Support go1.17 slice to array pointer conversion.
nevkontakte Aug 8, 2021
bc3fd14
Implement reflect support for slice to array pointer conversion.
nevkontakte Aug 14, 2021
cc76e63
Preserve nil slices when converting between different slice types.
nevkontakte Aug 14, 2021
d58f2e3
Fix reflect.TestMethodPkgPath test.
nevkontakte Sep 6, 2021
a055c1d
reflect: ArrayOf() panics if array length is negative.
nevkontakte Sep 6, 2021
5f41a3b
Use desiredType instead of underlying when converting slice to array.
nevkontakte Sep 6, 2021
afc51e1
Update VFS.
nevkontakte Sep 6, 2021
5be4748
Merge pull request #1055 from nevkontakte/wip-go1.17
nevkontakte Sep 7, 2021
839156b
Rewrite index operator on array-pointer into an explicit dereference.
nevkontakte Sep 11, 2021
a31dbb8
Provide correct constructor for names array-pointer types.
nevkontakte Sep 11, 2021
d35909a
reflect: Fix conversion between different array pointer types.
nevkontakte Sep 12, 2021
cb1f7e8
reflect: Fix slice length check in Value.CanConvert.
nevkontakte Sep 12, 2021
54dda39
Update VFS and minified prelude.
nevkontakte Sep 12, 2021
6a42cad
Merge pull request #1057 from nevkontakte/wip-go1.17
nevkontakte Sep 13, 2021
4dda1bf
sync/atomic: Implement new Swap and CompareAndSwap methods of Value.
nevkontakte Sep 14, 2021
04eeecb
Update VFS with sync/atomic.
nevkontakte Sep 14, 2021
d80c496
Merge pull request #1058 from nevkontakte/wip-go1.17
nevkontakte Sep 15, 2021
80278a6
Get `hash/maphash` to work again
flimzy Sep 17, 2021
f97fb25
Merge pull request #1059 from gopherjs/hashmap
flimzy Sep 17, 2021
1ead41d
Ignore tests for internal/abi package.
nevkontakte Sep 15, 2021
6d23e7f
Fix internal/poll package for Go 1.17.
nevkontakte Sep 17, 2021
e835da2
Update VFS for `internal/poll`.
nevkontakte Sep 17, 2021
8b97c5a
Merge pull request #1061 from nevkontakte/wip-go1.17
nevkontakte Sep 17, 2021
54c7e77
Fix PkgPath of the unsafe.Pointer type.
nevkontakte Sep 17, 2021
ffaebd7
Update minified prelude.
nevkontakte Sep 17, 2021
d60ba2c
Fix compiler panic when assigning to a named pointer type.
nevkontakte Sep 17, 2021
a0dbb0e
Mark `fixedbugs/issue23017.go` as a known failure.
nevkontakte Sep 17, 2021
f7183f9
Merge pull request #1064 from nevkontakte/wip-go1.17
nevkontakte Sep 18, 2021
1c5f51f
runtime: Version() returns Go version provided by the compiler.
nevkontakte Sep 18, 2021
866eb02
Update VFS for `runtime`.
nevkontakte Sep 18, 2021
5890279
Update Go version to test against to 1.17.1.
nevkontakte Sep 18, 2021
41f8453
Merge pull request #1065 from nevkontakte/wip-go1.17
nevkontakte Sep 18, 2021
c05f513
Reduce the number of quickcheck iterations for edwards25519.
nevkontakte Sep 18, 2021
2550e90
Update VFS.
nevkontakte Sep 18, 2021
3873393
Merge pull request #1066 from nevkontakte/wip-go1.17
nevkontakte Sep 18, 2021
267d5db
Update README for Go 1.17.
nevkontakte Sep 18, 2021
7fa979d
Update build constraints on the compiler to require Go 1.17.
nevkontakte Sep 18, 2021
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
Update README for Go 1.17.
  • Loading branch information
nevkontakte committed Sep 18, 2021
commit 267d5db62d69ce14dc248cd81301a09ffa9bc5c3
12 changes: 7 additions & 5 deletions 12 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ GopherJS compiles Go code ([golang.org](https://golang.org/)) to pure JavaScript

### What's new?

- 2021-09-19: Go 1.17 support is available!
- 2021-08-23: Go Modules are now fully supported.
- 2021-06-19: Complete `syscall/js` package implementation compatible with the upstream Go 1.16.
- 2021-04-04: **Go 1.16 is now officially supported!** 🎉 🎉 🎉

Expand All @@ -22,7 +24,7 @@ Nearly everything, including Goroutines ([compatibility documentation](https://g

### Installation and Usage

GopherJS [requires Go 1.16 or newer](https://github.com/gopherjs/gopherjs/blob/master/doc/compatibility.md#go-version-compatibility). If you need an older Go
GopherJS [requires Go 1.17 or newer](https://github.com/gopherjs/gopherjs/blob/master/doc/compatibility.md#go-version-compatibility). If you need an older Go
version, you can use an [older Gopher release](https://github.com/gopherjs/gopherjs/releases).

Get or update GopherJS and dependencies with:
Expand All @@ -31,12 +33,12 @@ Get or update GopherJS and dependencies with:
go get -u github.com/gopherjs/gopherjs
```

If your local Go distribution as reported by `go version` is newer than Go 1.16, then you need to set the `GOPHERJS_GOROOT` environment variable to a directory that contains a Go 1.16 distribution. For example:
If your local Go distribution as reported by `go version` is newer than Go 1.17, then you need to set the `GOPHERJS_GOROOT` environment variable to a directory that contains a Go 1.17 distribution. For example:

```
go get golang.org/dl/go1.16.3
go1.16.3 download
export GOPHERJS_GOROOT="$(go1.16.3 env GOROOT)" # Also add this line to your .profile or equivalent.
go get golang.org/dl/go1.17.1
go1.17.1 download
export GOPHERJS_GOROOT="$(go1.17.1 env GOROOT)" # Also add this line to your .profile or equivalent.
```

Now you can use `gopherjs build [package]`, `gopherjs build [files]` or `gopherjs install [package]` which behave similar to the `go` tool. For `main` packages, these commands create a `.js` file and `.js.map` source map in the current directory or in `$GOPATH/bin`. The generated JavaScript file can be used as usual in a website. Use `gopherjs help [command]` to get a list of possible command line flags, e.g. for minification and automatically watching for changes.
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.