Skip to content

Commit 1682bc3

Browse files
committed
playground/internal/imports: add Go 1.12 identifiers
Regenerated with: go generate github.com/gopherjs/gopherjs.github.io/playground/internal/imports
1 parent 7905a53 commit 1682bc3

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

playground/internal/imports/mkstdlib.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ func main() {
6868
mustOpen(api("go1.9.txt")),
6969
mustOpen(api("go1.10.txt")),
7070
mustOpen(api("go1.11.txt")),
71+
mustOpen(api("go1.12.txt")),
7172
mustOpen("gopherjs.txt"),
7273
)
7374
sc := bufio.NewScanner(f)

playground/internal/imports/zstdlib.go

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,12 @@ var stdlib = map[string]string{
236236
"binary.Uvarint": "encoding/binary",
237237
"binary.Varint": "encoding/binary",
238238
"binary.Write": "encoding/binary",
239+
"bits.Add": "math/bits",
240+
"bits.Add32": "math/bits",
241+
"bits.Add64": "math/bits",
242+
"bits.Div": "math/bits",
243+
"bits.Div32": "math/bits",
244+
"bits.Div64": "math/bits",
239245
"bits.LeadingZeros": "math/bits",
240246
"bits.LeadingZeros16": "math/bits",
241247
"bits.LeadingZeros32": "math/bits",
@@ -246,6 +252,9 @@ var stdlib = map[string]string{
246252
"bits.Len32": "math/bits",
247253
"bits.Len64": "math/bits",
248254
"bits.Len8": "math/bits",
255+
"bits.Mul": "math/bits",
256+
"bits.Mul32": "math/bits",
257+
"bits.Mul64": "math/bits",
249258
"bits.OnesCount": "math/bits",
250259
"bits.OnesCount16": "math/bits",
251260
"bits.OnesCount32": "math/bits",
@@ -265,6 +274,9 @@ var stdlib = map[string]string{
265274
"bits.RotateLeft32": "math/bits",
266275
"bits.RotateLeft64": "math/bits",
267276
"bits.RotateLeft8": "math/bits",
277+
"bits.Sub": "math/bits",
278+
"bits.Sub32": "math/bits",
279+
"bits.Sub64": "math/bits",
268280
"bits.TrailingZeros": "math/bits",
269281
"bits.TrailingZeros16": "math/bits",
270282
"bits.TrailingZeros32": "math/bits",
@@ -341,6 +353,7 @@ var stdlib = map[string]string{
341353
"bytes.Reader": "bytes",
342354
"bytes.Repeat": "bytes",
343355
"bytes.Replace": "bytes",
356+
"bytes.ReplaceAll": "bytes",
344357
"bytes.Runes": "bytes",
345358
"bytes.Split": "bytes",
346359
"bytes.SplitAfter": "bytes",
@@ -550,9 +563,12 @@ var stdlib = map[string]string{
550563
"csv.ParseError": "encoding/csv",
551564
"csv.Reader": "encoding/csv",
552565
"csv.Writer": "encoding/csv",
566+
"debug.BuildInfo": "runtime/debug",
553567
"debug.FreeOSMemory": "runtime/debug",
554568
"debug.GCStats": "runtime/debug",
569+
"debug.Module": "runtime/debug",
555570
"debug.PrintStack": "runtime/debug",
571+
"debug.ReadBuildInfo": "runtime/debug",
556572
"debug.ReadGCStats": "runtime/debug",
557573
"debug.SetGCPercent": "runtime/debug",
558574
"debug.SetMaxStack": "runtime/debug",
@@ -577,6 +593,7 @@ var stdlib = map[string]string{
577593
"doc.New": "go/doc",
578594
"doc.Note": "go/doc",
579595
"doc.Package": "go/doc",
596+
"doc.PreserveAST": "go/doc",
580597
"doc.Synopsis": "go/doc",
581598
"doc.ToHTML": "go/doc",
582599
"doc.ToText": "go/doc",
@@ -1817,6 +1834,7 @@ var stdlib = map[string]string{
18171834
"elf.R_PPC_UADDR32": "debug/elf",
18181835
"elf.R_RISCV": "debug/elf",
18191836
"elf.R_RISCV_32": "debug/elf",
1837+
"elf.R_RISCV_32_PCREL": "debug/elf",
18201838
"elf.R_RISCV_64": "debug/elf",
18211839
"elf.R_RISCV_ADD16": "debug/elf",
18221840
"elf.R_RISCV_ADD32": "debug/elf",
@@ -2446,6 +2464,7 @@ var stdlib = map[string]string{
24462464
"http.StatusTeapot": "net/http",
24472465
"http.StatusTemporaryRedirect": "net/http",
24482466
"http.StatusText": "net/http",
2467+
"http.StatusTooEarly": "net/http",
24492468
"http.StatusTooManyRequests": "net/http",
24502469
"http.StatusUnauthorized": "net/http",
24512470
"http.StatusUnavailableForLegalReasons": "net/http",
@@ -2543,6 +2562,7 @@ var stdlib = map[string]string{
25432562
"image.ZR": "image",
25442563
"importer.Default": "go/importer",
25452564
"importer.For": "go/importer",
2565+
"importer.ForCompiler": "go/importer",
25462566
"importer.Lookup": "go/importer",
25472567
"io.ByteReader": "io",
25482568
"io.ByteScanner": "io",
@@ -2582,6 +2602,7 @@ var stdlib = map[string]string{
25822602
"io.SeekEnd": "io",
25832603
"io.SeekStart": "io",
25842604
"io.Seeker": "io",
2605+
"io.StringWriter": "io",
25852606
"io.TeeReader": "io",
25862607
"io.WriteCloser": "io",
25872608
"io.WriteSeeker": "io",
@@ -3141,6 +3162,7 @@ var stdlib = map[string]string{
31413162
"os.Truncate": "os",
31423163
"os.Unsetenv": "os",
31433164
"os.UserCacheDir": "os",
3165+
"os.UserHomeDir": "os",
31443166
"palette.Plan9": "image/color/palette",
31453167
"palette.WebSafe": "image/color/palette",
31463168
"parse.ActionNode": "text/template/parse",
@@ -3234,6 +3256,7 @@ var stdlib = map[string]string{
32343256
"pe.IMAGE_FILE_MACHINE_AMD64": "debug/pe",
32353257
"pe.IMAGE_FILE_MACHINE_ARM": "debug/pe",
32363258
"pe.IMAGE_FILE_MACHINE_ARM64": "debug/pe",
3259+
"pe.IMAGE_FILE_MACHINE_ARMNT": "debug/pe",
32373260
"pe.IMAGE_FILE_MACHINE_EBC": "debug/pe",
32383261
"pe.IMAGE_FILE_MACHINE_I386": "debug/pe",
32393262
"pe.IMAGE_FILE_MACHINE_IA64": "debug/pe",
@@ -3402,6 +3425,7 @@ var stdlib = map[string]string{
34023425
"reflect.MakeMapWithSize": "reflect",
34033426
"reflect.MakeSlice": "reflect",
34043427
"reflect.Map": "reflect",
3428+
"reflect.MapIter": "reflect",
34053429
"reflect.MapOf": "reflect",
34063430
"reflect.Method": "reflect",
34073431
"reflect.New": "reflect",
@@ -3724,6 +3748,7 @@ var stdlib = map[string]string{
37243748
"strings.Reader": "strings",
37253749
"strings.Repeat": "strings",
37263750
"strings.Replace": "strings",
3751+
"strings.ReplaceAll": "strings",
37273752
"strings.Replacer": "strings",
37283753
"strings.Split": "strings",
37293754
"strings.SplitAfter": "strings",
@@ -4090,6 +4115,9 @@ var stdlib = map[string]string{
40904115
"tls.RequireAnyClientCert": "crypto/tls",
40914116
"tls.Server": "crypto/tls",
40924117
"tls.SignatureScheme": "crypto/tls",
4118+
"tls.TLS_AES_128_GCM_SHA256": "crypto/tls",
4119+
"tls.TLS_AES_256_GCM_SHA384": "crypto/tls",
4120+
"tls.TLS_CHACHA20_POLY1305_SHA256": "crypto/tls",
40934121
"tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA": "crypto/tls",
40944122
"tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256": "crypto/tls",
40954123
"tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256": "crypto/tls",
@@ -4118,6 +4146,7 @@ var stdlib = map[string]string{
41184146
"tls.VersionTLS10": "crypto/tls",
41194147
"tls.VersionTLS11": "crypto/tls",
41204148
"tls.VersionTLS12": "crypto/tls",
4149+
"tls.VersionTLS13": "crypto/tls",
41214150
"tls.X25519": "crypto/tls",
41224151
"tls.X509KeyPair": "crypto/tls",
41234152
"token.ADD": "go/token",

0 commit comments

Comments
 (0)