Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

playground: regenerate with GopherJS 1.12-2 and Go 1.12.13#72

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
dmitshur merged 4 commits intomasterfromupdate-latest
Dec 2, 2019
Merged
Show file tree
Hide file tree
Changes fromall commits
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
3 changes: 2 additions & 1 deletionplayground/internal/imports/gen.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
//go:generate go run mkapi.go -output=syscalljs.txt -contexts js-wasm syscall/js
//go:generate go run mkapi.go -output=gopherjs.txt -gopath github.com/gopherjs/gopherjs/js
//go:generate go run mkstdlib.go -output=zstdlib
//go:generate rm gopherjs.txt
//go:generate rmsyscalljs.txtgopherjs.txt

package imports
5 changes: 5 additions & 0 deletionsplayground/internal/imports/mkstdlib.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -69,6 +69,11 @@ func main() {
mustOpen(api("go1.10.txt")),
mustOpen(api("go1.11.txt")),
mustOpen(api("go1.12.txt")),

// The API of the syscall/js package needs to be computed explicitly,
// because it's not included in the GOROOT/api/go1.*.txt files at this time.
mustOpen("syscalljs.txt"),

mustOpen("gopherjs.txt"),
)
sc := bufio.NewScanner(f)
Expand Down
1,420 changes: 719 additions & 701 deletionsplayground/internal/imports/zstdlib.go
View file
Open in desktop

Large diffs are not rendered by default.

Binary file modifiedplayground/pkg/archive/tar.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/archive/zip.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/bufio.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/bytes.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/compress/bzip2.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/compress/flate.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/compress/gzip.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/compress/lzw.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/compress/zlib.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/container/heap.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/container/list.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/container/ring.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/context.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/crypto.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/crypto/aes.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/crypto/cipher.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/crypto/des.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/crypto/dsa.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/crypto/ecdsa.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/crypto/elliptic.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/crypto/hmac.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/crypto/internal/randutil.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/crypto/internal/subtle.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/crypto/md5.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/crypto/rand.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/crypto/rc4.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/crypto/rsa.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/crypto/sha1.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/crypto/sha256.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/crypto/sha512.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/crypto/subtle.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/crypto/tls.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/crypto/x509.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/crypto/x509/pkix.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/database/sql/driver.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/debug/dwarf.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/debug/gosym.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/debug/pe.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/encoding.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/encoding/ascii85.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/encoding/asn1.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/encoding/base32.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/encoding/base64.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/encoding/binary.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/encoding/csv.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/encoding/gob.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/encoding/hex.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/encoding/json.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/encoding/pem.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/encoding/xml.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/errors.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/flag.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/fmt.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/github.com/gopherjs/gopherjs/js.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/github.com/gopherjs/gopherjs/nosync.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/go/ast.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/go/doc.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/go/format.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/go/parser.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/go/printer.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/go/scanner.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/go/token.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/hash.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/hash/adler32.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/hash/crc32.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/hash/crc64.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/hash/fnv.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/html.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/html/template.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/image.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/image/color.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/image/color/palette.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/image/draw.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/image/gif.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/image/internal/imageutil.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/image/jpeg.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/image/png.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/index/suffixarray.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/bytealg.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/cpu.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/fmtsort.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/nettrace.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/poll.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/race.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/singleflight.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/syscall/unix.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/testlog.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/x/crypto/chacha20poly1305.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/x/crypto/cryptobyte.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/x/crypto/cryptobyte/asn1.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/x/crypto/curve25519.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/x/crypto/hkdf.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/x/crypto/internal/chacha20.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/x/crypto/poly1305.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/x/net/dns/dnsmessage.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/x/net/http/httpguts.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/x/net/http/httpproxy.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/x/net/http2/hpack.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/x/net/idna.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/x/net/route.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/x/text/secure/bidirule.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/x/text/transform.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/x/text/unicode/bidi.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/internal/x/text/unicode/norm.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/io.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/io/ioutil.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/log.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/math.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/math/big.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/math/bits.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/math/cmplx.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/math/rand.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/mime.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/mime/multipart.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/mime/quotedprintable.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/net.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/net/http.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/net/http/cgi.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/net/http/cookiejar.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/net/http/fcgi.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/net/http/httptest.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/net/http/httptrace.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/net/http/httputil.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/net/http/internal.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/net/mail.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/net/smtp.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/net/textproto.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/net/url.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/os.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/os/exec.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/os/user.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/path.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/path/filepath.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/reflect.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/regexp.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/regexp/syntax.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/runtime.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/runtime/debug.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/runtime/internal/sys.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/runtime/trace.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/sort.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/strconv.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/strings.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/sync.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/sync/atomic.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/syscall.a.js
View file
Open in desktop
Binary file not shown.
Binary file addedplayground/pkg/syscall/js.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/testing.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/testing/iotest.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/testing/quick.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/text/scanner.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/text/tabwriter.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/text/template.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/text/template/parse.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/time.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/unicode.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/unicode/utf16.a.js
View file
Open in desktop
Binary file not shown.
Binary file modifiedplayground/pkg/unicode/utf8.a.js
View file
Open in desktop
Binary file not shown.
2 changes: 1 addition & 1 deletionplayground/playground.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -54,7 +54,7 @@ func main() {
})
}()
} else {
scope.Set("code", "package main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/gopherjs/gopherjs/js\"\n)\n\nfunc main() {\n\tfmt.Println(\"Hello, playground\")\n\tjs.Global.Call(\"alert\", \"Hello, JavaScript\")\n\tprintln(\"Hello, JS console\")\n}\n")
scope.Set("code", "package main\n\nimport (\n\t\"fmt\"\n\t\"syscall/js\"\n)\n\nfunc main() {\n\tfmt.Println(\"Hello, playground\")\n\tjs.Global().Call(\"alert\", \"Hello, JavaScript\")\n\tprintln(\"Hello, JS console\")\n}\n")
close(codeReady)
}
scope.Set("imports", true)
Expand Down
28 changes: 14 additions & 14 deletionsplayground/playground.js
View file
Open in desktop

Large diffs are not rendered by default.

30 changes: 23 additions & 7 deletionsplayground/update.sh
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,33 +10,48 @@ cleanup() {

trap cleanup EXIT HUP INT TERM

# This script relies on GOPATH mode. The GOPATH workspace
# must contain both github.com/gopherjs/gopherjs and
# github.com/gopherjs/gopherjs.github.io repositories.
export GO111MODULE=off

go install github.com/gopherjs/gopherjs/...

go generate github.com/gopherjs/gopherjs.github.io/playground/internal/imports

# Build playground itself.
gopherjs build -m

# The GOPATH workspace where the GopherJS project is.
gopherjsgopath=$(go list -f '{{.Root}}' github.com/gopherjs/gopherjs)

rm -rf pkg/
# Make a copy of GOROOT that is non-user-writable,
# to prevent any GopherJS packages being written to it for now.
echo "copying GOROOT from $(go env GOROOT) to $tmp/goroot"
cp -a "$(go env GOROOT)" "$tmp/goroot"
echo "making our copy of GOROOT non-user-writable for now"
chmod -R -w "$tmp/goroot"
export GOROOT="$tmp/goroot"
unset GOPHERJS_GOROOT # force $GOROOT to be used

# Build playground itself.
gopherjs build -m

# Use an empty GOPATH workspace with just gopherjs,
# so that all the standard library packages get written to GOROOT/pkg.
export GOPATH="$tmp/gopath"
mkdir -p "$GOPATH"/src/github.com/gopherjs/gopherjs
cp -a "$gopherjsgopath"/src/github.com/gopherjs/gopherjs/* "$GOPATH"/src/github.com/gopherjs/gopherjs

rm -rf pkg/

gopherjs install -m github.com/gopherjs/gopherjs/js github.com/gopherjs/gopherjs/nosync
mkdir -p pkg/github.com/gopherjs/gopherjs
cp "$GOPATH"/pkg/*_js_min/github.com/gopherjs/gopherjs/js.a pkg/github.com/gopherjs/gopherjs/js.a
cp "$GOPATH"/pkg/*_js_min/github.com/gopherjs/gopherjs/nosync.a pkg/github.com/gopherjs/gopherjs/nosync.a

# Makea copy ofGOROOTthat isuser-writeable,
# MakeourGOROOTcopyuser-writable now, then
# use it to build and copy out standard library packages.
cp -a "$(go env GOROOT)" "$tmp/goroot"
export GOROOT="$tmp/goroot"
echo "making our copy of GOROOT user-writable again"
chmod -R u+w "$tmp/goroot"

gopherjs install -m \
archive/tar \
archive/zip \
Expand DownExpand Up@@ -125,6 +140,7 @@ gopherjs install -m \
strconv \
strings \
sync/atomic \
syscall/js \
testing \
testing/iotest \
testing/quick \
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp