forked from gopherjs/gopherjs.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minimalistic example of compiling Go code in the browser.
Some important details: - Updated GopherJS version to 1.18-beta3, which is the latest release. - Precompiled modules must be kept in sync with the compiler version the playground uses, so they have been regenerated. I had to fix a small issue in the precompilation script to do that, which was caused by recent changes in the compiler code. - For the same reason, I changed loading packages from a CDN to a relative URL. - The playground code has been refactored to be more Go-idiomatic. See detailed comments in the source.
- Loading branch information
1 parent
41e20db
commit 5408ff2
Showing
217 changed files
with
19,721 additions
and
20,263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,19 @@ | ||
module github.com/gopherjs/gopherjs.github.io/playground | ||
|
||
go 1.17 | ||
go 1.18 | ||
|
||
require ( | ||
github.com/gopherjs/gopherjs v1.18.0-beta1 | ||
github.com/neelance/go-angularjs v0.0.0-20170205214111-8c6312cca6e2 | ||
github.com/gopherjs/gopherjs v1.18.0-beta3 | ||
github.com/sirupsen/logrus v1.8.1 | ||
golang.org/x/tools v0.1.12 | ||
honnef.co/go/js/dom v0.0.0-20210725211120-f030747120f2 | ||
honnef.co/go/js/xhr v0.0.0-20150307031022-00e3346113ae | ||
) | ||
|
||
require ( | ||
github.com/fsnotify/fsnotify v1.5.1 // indirect | ||
github.com/neelance/astrewrite v0.0.0-20160511093645-99348263ae86 // indirect | ||
github.com/neelance/sourcemap v0.0.0-20200213170602-2833bce08e4c // indirect | ||
github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749 // indirect | ||
github.com/stretchr/testify v1.7.0 // indirect | ||
github.com/visualfc/goembed v0.3.3 // indirect | ||
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect | ||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect | ||
honnef.co/go/js/util v0.0.0-20150216223935-96b8dd9d1621 // indirect | ||
) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.