mirror of
https://github.com/taigrr/wasm-experiments
synced 2025-01-18 04:03:21 -08:00
Add jsgo.io example
This commit is contained in:
7
vendor/github.com/dave/jsgo/LICENSE
generated
vendored
Normal file
7
vendor/github.com/dave/jsgo/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
Copyright (c) 2018 David Brophy
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
1164
vendor/github.com/dave/jsgo/assets/std/index.go
generated
vendored
Normal file
1164
vendor/github.com/dave/jsgo/assets/std/index.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
260
vendor/github.com/dave/jsgo/assets/std/objects.go
generated
vendored
Normal file
260
vendor/github.com/dave/jsgo/assets/std/objects.go
generated
vendored
Normal file
@@ -0,0 +1,260 @@
|
||||
package std
|
||||
|
||||
var Objects = map[string]string{
|
||||
"archive/tar": "15ab337488de08d4ed43b665c5c0b592971d283b",
|
||||
"archive/zip": "7e7e81adb9a53e35bc8bf3bf2e02c354d63f54c4",
|
||||
"bufio": "900a143331595c8de90584cc0ffcb3086472c178",
|
||||
"bytes": "6b82cb44f6c71e9bb239ca54368fffc5b580cae1",
|
||||
"cmd/addr2line": "963bb7e97918aea491180b40ea53b18fc97307cc",
|
||||
"cmd/api": "c63b7beb325974779aa72d17f3fdea3a467ac7ef",
|
||||
"cmd/asm": "e5b77367ba6da08a4296e8ebfd76d4909983ce67",
|
||||
"cmd/asm/internal/arch": "0b18eae570fc24e904ca39583c780824c071fd43",
|
||||
"cmd/asm/internal/asm": "03697eea25b014b8bd6b5c9f0d2c3161c67f572c",
|
||||
"cmd/asm/internal/flags": "74da3bea7765da3d9addeff2a05e89aeffc21956",
|
||||
"cmd/asm/internal/lex": "63257a72969a02057822819e8fed75ef2aa002c9",
|
||||
"cmd/buildid": "0ab8e19c5c56c4855086c8d255e1687b66bef6fd",
|
||||
"cmd/cgo": "4b59941170fd7a631e25bc78f333227eaa58c55d",
|
||||
"cmd/compile": "cd9c4340cf31235f26c4ab86d781a677de15d6b3",
|
||||
"cmd/compile/internal/amd64": "f5d9ea54224f60d732336e59488323da104991c1",
|
||||
"cmd/compile/internal/arm": "5f1ff1c81494be5052213bd7695b425243166245",
|
||||
"cmd/compile/internal/arm64": "131c72c92e7f733578ed12222fccf5e8c8d0ae8d",
|
||||
"cmd/compile/internal/gc": "11707f4b859dd96e9682a662e53c48ef0dcc100e",
|
||||
"cmd/compile/internal/mips": "2c8b4248c5b1c2496580a18fc9ccabce42acdfe3",
|
||||
"cmd/compile/internal/mips64": "3391cdfc9090f81772125705f45758801de545d1",
|
||||
"cmd/compile/internal/ppc64": "9fd3949463b3aa3275d7888a75ed0eaaacc4c5ea",
|
||||
"cmd/compile/internal/s390x": "8e1f986fb7c7eb37204a0a6c24ee9f8c215069e6",
|
||||
"cmd/compile/internal/ssa": "941e46d61666bfdfa54935849ce6651c1ab1990d",
|
||||
"cmd/compile/internal/syntax": "0baac36d0fb02c19730d6a42be40570e575d71ff",
|
||||
"cmd/compile/internal/test": "43884665a6fd92fd9c44b10b6b34d2449e07ff87",
|
||||
"cmd/compile/internal/types": "970c0bf280a035b2fc2bdcfeae42e2ff49570cfe",
|
||||
"cmd/compile/internal/x86": "bd7e3618546e42a8582eec3542c12e33d6b6994d",
|
||||
"cmd/cover": "2e2ed5d4337e5cb7a5f6dd1efaa1834f28eb50eb",
|
||||
"cmd/dist": "278c4f075f264c8f0cffa7b173f3a8398e446e07",
|
||||
"cmd/doc": "bfe3aa051de37789da56a55ab56f570f025e3895",
|
||||
"cmd/fix": "63840d5f73aecb77a1130aa35dc8bebf9f23db8c",
|
||||
"cmd/go": "d0497b8e244a7cc29cf51d33da287762379d4cfb",
|
||||
"cmd/go/internal/base": "0b901b60c419f219f3aa1ba9b8d4453523ef6cc7",
|
||||
"cmd/go/internal/bug": "6beeac79b053c06f6dc48c198b9a5b7680b5d890",
|
||||
"cmd/go/internal/cache": "fbef08fa0bf3c22661de5819b784bce83dae699b",
|
||||
"cmd/go/internal/cfg": "5de6af85a85259f426f370823be7476b670c3ee8",
|
||||
"cmd/go/internal/clean": "21722d4990db7b316ef8028f7eaa2847f7920c38",
|
||||
"cmd/go/internal/cmdflag": "f90faa92ec4b6b363aedf4108609f9ada1902010",
|
||||
"cmd/go/internal/doc": "df5087ff4e0deda8123fd912a350066ba2ef226a",
|
||||
"cmd/go/internal/envcmd": "92dbd6076beb8e60c27a9a06c41b4492d1b558f9",
|
||||
"cmd/go/internal/fix": "29e570b55a7e5545aeaa97ee5ead5ff6f6690a98",
|
||||
"cmd/go/internal/fmtcmd": "14062cef705cc43ce9ce1d591bdbb8ab4bf74c68",
|
||||
"cmd/go/internal/generate": "1d4d7657a462ad1e0763ed4d83a61088e454750d",
|
||||
"cmd/go/internal/get": "600a7cfab7cf9301fadb123afe9d61c8ff34e504",
|
||||
"cmd/go/internal/help": "cd95d8ba2a5d72bdc0bb83164e1f3c8fa153cbf2",
|
||||
"cmd/go/internal/list": "726c434add44550bf070f9fe3f0adcc6a8c0073d",
|
||||
"cmd/go/internal/load": "b88a6325a7c54db8feb09bdd45a1560a2ccbd832",
|
||||
"cmd/go/internal/run": "2bad8a70c0e271800747077956b5a39a796418c8",
|
||||
"cmd/go/internal/str": "fb03b8606797b6ba0901079358c8444f1c5224b9",
|
||||
"cmd/go/internal/test": "91bf61c6d1b604e76b0ad3995bb0feb2a84f6a13",
|
||||
"cmd/go/internal/tool": "4f5a42fdb05c068d85203d37e23d14a86d82417e",
|
||||
"cmd/go/internal/version": "7555f2666522c4c5f87b6c4c71bf39786864c24c",
|
||||
"cmd/go/internal/vet": "4342628642a15911e1e6eceb4bc47785f0539241",
|
||||
"cmd/go/internal/web": "0c27142b978c54e0f67079c0ea7d70f7675957d2",
|
||||
"cmd/go/internal/work": "4e1df47b63309a9e5b2aa1300b4812f1f79585cd",
|
||||
"cmd/gofmt": "6c5294464e582dd6f9481ae0eec64dd7fdb0da08",
|
||||
"cmd/internal/bio": "1327fa774881dffd0ef8487f22ee94446c1e7e29",
|
||||
"cmd/internal/browser": "f63d7d232a64d36e0d661cb4111fed3271c6e29b",
|
||||
"cmd/internal/buildid": "59a66fee345a1b5ad7e3d4aed5f407f1c0b11199",
|
||||
"cmd/internal/dwarf": "9359c64cc220c838ced541489e89f196e16bd2b1",
|
||||
"cmd/internal/edit": "8b6767a16012dac7653d30e65f53f44a87165f7a",
|
||||
"cmd/internal/gcprog": "8f14249401944d83d779c0686d05493fa30b6e8a",
|
||||
"cmd/internal/goobj": "ba72b3ef2eafec511c19f5f909ba5a4b3483eee6",
|
||||
"cmd/internal/obj": "5946fdf1133acaa0e8a54e40f0e73f93a5a9fb24",
|
||||
"cmd/internal/obj/arm": "5862108885f1c92b4dfa745b27fd64adf7625a9c",
|
||||
"cmd/internal/obj/arm64": "d103fb81d05a3049d0ffb844b20262f8db2b6fbd",
|
||||
"cmd/internal/obj/mips": "1dce298c90dd344d834e58dcca6083cb62a8dc37",
|
||||
"cmd/internal/obj/ppc64": "106f693ae2a228551fe78991bea7dce0939f887e",
|
||||
"cmd/internal/obj/s390x": "d6772c65ac719dc6eaa3563f84d36e130c23490f",
|
||||
"cmd/internal/obj/x86": "8f7b86cdf59e5e6042a7efcc8b23393f3c2a8490",
|
||||
"cmd/internal/objabi": "3088cb6b9d1320c6b960cba6ab366c7062575c3f",
|
||||
"cmd/internal/objfile": "55a07ab050e0aa7fd1e22636496674de55559e6d",
|
||||
"cmd/internal/src": "d3d0ce6711a947d51f83b11754766ffc34c14572",
|
||||
"cmd/internal/sys": "1040e630813349905a248583ccdcd343067d8c7b",
|
||||
"cmd/internal/test2json": "fbc7f16fb2019bfba5cb77f40d1ed6986364ec27",
|
||||
"cmd/link": "40b75131f57621dbb5ff914ffb60ddde45bea8e2",
|
||||
"cmd/link/internal/amd64": "8635128e0240be42c0cae6ee6a4cc9f891571642",
|
||||
"cmd/link/internal/arm": "23951653400195d054a549f244ae4c2547ae1ae5",
|
||||
"cmd/link/internal/arm64": "3e555c1b3fba7fe259100dd15ac39a0193df2c7b",
|
||||
"cmd/link/internal/ld": "055ea86a3b81b8e75643e22af23798877646df7d",
|
||||
"cmd/link/internal/loadelf": "6f6be8070f314c3f737cc104b0508b0e528f2dde",
|
||||
"cmd/link/internal/loadmacho": "b85a7cfad033b0fa6467280243a8d4e4f04bd0db",
|
||||
"cmd/link/internal/loadpe": "e2ccda659afe2f0394710f466f66bdd579c54208",
|
||||
"cmd/link/internal/mips": "12e4ada9c6791605194f04023a345fdd72370cf5",
|
||||
"cmd/link/internal/mips64": "99d4d926a5e07311fed1cb637ab5179f652e2988",
|
||||
"cmd/link/internal/objfile": "9baae95deab8676f1efb226f168ad684e2b64b6d",
|
||||
"cmd/link/internal/ppc64": "6e8ea57c52ad09baeb3c48fd13b9d9d840074184",
|
||||
"cmd/link/internal/s390x": "49eb93b9ed182f65ba604f6868242adf279c2838",
|
||||
"cmd/link/internal/sym": "d710f38d05dc0f46c324187034a9933eaa87b9a8",
|
||||
"cmd/link/internal/x86": "6cf577f20d4e718e722bcc148119485dac5d4d22",
|
||||
"cmd/nm": "fcc0279301271b19fb4a43730b7ace0a13f593b4",
|
||||
"cmd/objdump": "d39a448b93ebafe5a9198426909deb11e304a39e",
|
||||
"cmd/pack": "47b1d6349f0e1a5bc603cf03f771dc3ec5ef8e3a",
|
||||
"cmd/pprof": "b4823792338f951c3aabacc657a5d12b3c6e3114",
|
||||
"cmd/test2json": "13e42b6cbad776b717a02377950ddbfd0612fe01",
|
||||
"cmd/trace": "24ac93cafa9533eeffffd9b22fbe3bb09b1ca5a3",
|
||||
"cmd/vet": "04b858ebb82cacf59ce16d757409ca9eb3f7a85b",
|
||||
"cmd/vet/internal/cfg": "6d94a2fcaf5af5715e4d51903e1df89f90d20610",
|
||||
"cmd/vet/internal/whitelist": "84e247851dda6b4a2a7b6bf859e57c0964e4eba0",
|
||||
"compress/bzip2": "14b755d13f478f3620837efb68923fd0b813d16c",
|
||||
"compress/flate": "44ad5df52517ad7c4f3554880f20a2c497c81d6e",
|
||||
"compress/gzip": "da2136e141b54d003dd733b64dbaf88043fe1cc1",
|
||||
"compress/lzw": "4246d3d28c9d0c8bd383ebf70a06b9b5aa3a0908",
|
||||
"compress/zlib": "0881ae885c64db0c8ef2a82ff1c5ff5d94ba6007",
|
||||
"container/heap": "2698061c14691927ded95164c3d800256871f2f7",
|
||||
"container/list": "a0786604da09c84a42e71b72b4f10227dbaeba5b",
|
||||
"container/ring": "7b4dc0a362c4b9f78474c3feb0edb733d08307dd",
|
||||
"context": "83acce6b568fcfc990f3172d005b742874cc107d",
|
||||
"crypto": "5d899bb007b2f094ec98f2f34470e724d4af9b22",
|
||||
"crypto/aes": "9bbcbaf8a59cd3db1bcf8fc5e3424bf225ff68e0",
|
||||
"crypto/cipher": "5e8288bf5b22ed3d215da04eddd6581400a052fa",
|
||||
"crypto/des": "027fb7422523858e7fa61f961901d23f843311b8",
|
||||
"crypto/dsa": "14388cd533f5a4d9206b0cfa0c7822e139326daa",
|
||||
"crypto/ecdsa": "c1a180288447d55d56907168099ad4bbd44db0ff",
|
||||
"crypto/elliptic": "0b202a7430f6e5195138c60152a0483224cbf7c7",
|
||||
"crypto/hmac": "0d414ebc2bd9682c291aefec4a561ac66cd3bc6d",
|
||||
"crypto/internal/cipherhw": "c4f4420e454b384fe9043dad79ef49c81b247a46",
|
||||
"crypto/md5": "da312c9335796264f28077714a04b2e967599554",
|
||||
"crypto/rand": "65d3b0f3dd132340aeb23e2f4181dcaac848aa1a",
|
||||
"crypto/rc4": "ad1f46a9dafd1385206f8c5f62675ed5b0e8f4a3",
|
||||
"crypto/rsa": "e75bf8a8b29eb153b12d33c249effa14599297df",
|
||||
"crypto/sha1": "dccddcf23c8803452d7a4ce7e75db355f42995e0",
|
||||
"crypto/sha256": "34264bbb223410ea57fdfee9bcccaee0c82402a1",
|
||||
"crypto/sha512": "0cc15df431c27be746db6758e85383bf89248134",
|
||||
"crypto/subtle": "f44c91eafcb8d9c647f289047a7c3bd269a4520c",
|
||||
"crypto/tls": "e8d9082a48d23ff657afc01bda6885484a73c12d",
|
||||
"crypto/x509": "cdc4bc77c8d1f4b71f24e756059d4aa8ff829581",
|
||||
"crypto/x509/pkix": "62332f4e6bd7f99cec334c3da1406b01709cf743",
|
||||
"database/sql": "db827fdc1257a38af1f51dfadc43a1994c743763",
|
||||
"database/sql/driver": "6ab4180904c5660b2108e87e1fc0ef756d9470b6",
|
||||
"debug/dwarf": "320ca24a70cea1c46ba80a660519059c7a071a6e",
|
||||
"debug/elf": "e78bfb08b9a257714de4203999a5d3be0e0c1b63",
|
||||
"debug/gosym": "6edebb5048171ef44e020cb8576ee1c89b4931d7",
|
||||
"debug/macho": "e3b669a9cf723b261aa017586ec7fd3f3a53b3d1",
|
||||
"debug/pe": "f292145cb6ac5d4a6f36c48d9a818d5c3d63b578",
|
||||
"debug/plan9obj": "5c47f5ab91fd80075c93cca799a3495598266a9e",
|
||||
"encoding": "415fc2b9d9a773a6b2cfeac876ab3e1dd3fc82f3",
|
||||
"encoding/ascii85": "d95edb12de6a80133e6d7c23980e7bf531ffa326",
|
||||
"encoding/asn1": "887607f6e28b65b35829bcb9a10b242ed1bc432f",
|
||||
"encoding/base32": "c0d6c798b53d1416073cb2fe7e09f4d123f39c54",
|
||||
"encoding/base64": "f3da6928ba01200e61a372d0a83498b817927ff1",
|
||||
"encoding/binary": "7f31051d0aee488777bf2ed93992ee26d83caa9c",
|
||||
"encoding/csv": "a1631dd7746aaff8b155d325e8e79856a09ce07c",
|
||||
"encoding/gob": "ae9bd85d3db2b2b4b996c03a4451095ab6d8ae1a",
|
||||
"encoding/hex": "72ba0a067cb8cb6702fbc45f853aeaf3a1687aa7",
|
||||
"encoding/json": "2a43b7ce1c4c359bcb463ecc4e1d911d9a8b1cb2",
|
||||
"encoding/pem": "bb8170f7fc68244ca34155ab338f460b57adc759",
|
||||
"encoding/xml": "d68f0851f6f4cdba81498ae59cf287b86717368a",
|
||||
"errors": "0ed7effb5355027f184e75dd0870c0e3bf12e496",
|
||||
"expvar": "eb4e8ed5be6eec450663160232d71c2359638792",
|
||||
"flag": "d22340ece91cbe74d65092934f829bd29739c0e9",
|
||||
"fmt": "8845ae73100f45a34a45a61be592d0c24f3b8dc8",
|
||||
"go/ast": "b7c368b75c14eaa115f519a5c12e8852555dd150",
|
||||
"go/build": "0f8a6272ddb9baa281d29c937879a9dcd9a52b7d",
|
||||
"go/constant": "5299fd8fc0da218395d0b08c07efccd9ee7ebf56",
|
||||
"go/doc": "9401bff4d1f2b7b95377bb47b45c34496dd7c7ed",
|
||||
"go/format": "12eb7f3cd122bef27959f998b3900e31f2a333e7",
|
||||
"go/importer": "0b58a35e140bddfb6b124de4e64ce1f05382fb81",
|
||||
"go/internal/gccgoimporter": "e2a82441f666f41f85fa8d19f5f45ac34ca0a96f",
|
||||
"go/internal/gcimporter": "5bc9ddd442bdb25e2c40be48ef16cfd51f38050b",
|
||||
"go/internal/srcimporter": "0740ba483f598cb1cfe47e1a704e2d31cfd52fef",
|
||||
"go/parser": "33d621dd14dd18c087a2b67cec9a563742e676eb",
|
||||
"go/printer": "7b86910fd26f193b07b2fa73e3d82dc057e61f09",
|
||||
"go/scanner": "87bab94b60dfbafa0cb308df1c06960d73050d46",
|
||||
"go/token": "3276595ca025ab006a504536a3f71fb272bf38cc",
|
||||
"go/types": "5c23b36d7e3a8137c02f9efeb25e1bcc552abbc0",
|
||||
"hash": "120a0e86158728a311e29cd59459829c60b2e69d",
|
||||
"hash/adler32": "a0a4e35d2a8fea6de62fbe373db24671b36f3df0",
|
||||
"hash/crc32": "ebc22a83a526b1434c7dc45669735a108f70ad2a",
|
||||
"hash/crc64": "fb7ffe1c5efce45f3ff8dd598f49db94dbab4e8f",
|
||||
"hash/fnv": "163d2027e8d292f092979e9457230b58376bc29c",
|
||||
"html": "bd99208843be905728b1edb424cbee8099d28559",
|
||||
"html/template": "69e171797015cbba3d5619672fb80e4cf5ccfccc",
|
||||
"image": "2b3c47c094042bb750ae4ce378001ed33b027328",
|
||||
"image/color": "a8ca152bbfcf7535f3bba831874941321ce31f84",
|
||||
"image/color/palette": "88adf3330bca031bcd4d573482654788cde7eb73",
|
||||
"image/draw": "ab6e3c04e6b41aa17268902ecd457faba39b1022",
|
||||
"image/gif": "d197122c65272f440e5321865d711feaeef2816e",
|
||||
"image/internal/imageutil": "925f66b868a2b7cc058bcd9d941551bc51e42981",
|
||||
"image/jpeg": "43c59fc43fdefdbb26f1b348987072ecbf406ba0",
|
||||
"image/png": "affd58f47204ed0e01eea7bc074ad3a8684b47f0",
|
||||
"index/suffixarray": "6b2417f1ae9d72d2171f5016de9e5dac26f6518d",
|
||||
"internal/nettrace": "49b2927d7c96878aad5c6b3e1fa9b658e49c1f66",
|
||||
"internal/poll": "91e5738148f21749cd72001ff793c343f1d91a9b",
|
||||
"internal/race": "e874f96524f19c01991682fbbd534857c8e33d29",
|
||||
"internal/singleflight": "e64edee5037f3c924abfc6f416f0f61d32507718",
|
||||
"internal/syscall/windows": "add264fe24511441db37ce44514e88aff41c3226",
|
||||
"internal/syscall/windows/registry": "6e034a9ef4779b2a6e4c0b9345b3bcbd866e536a",
|
||||
"internal/syscall/windows/sysdll": "fea1910491cb1c91743db4b991d72238b9df51a9",
|
||||
"internal/testenv": "98df772fa46c5f14f0091c17fe8027016a45da48",
|
||||
"internal/testlog": "5e699db5f89a5d6b701ac42427f5950c3e4b0569",
|
||||
"internal/trace": "da3b81eb4706bf79ad259c5886acb79535479cd5",
|
||||
"io": "f423a1807f3b40209b461b5dc17b050107d5c2d5",
|
||||
"io/ioutil": "a053733680456ee4b045d05f820b02adef8dc619",
|
||||
"log": "bb287a57aafd078de0c8a3ff880dc455239f0cc4",
|
||||
"log/syslog": "94d63e9d5b580d0e82b38e4d86981e116f84840a",
|
||||
"math": "48fe4f989c2a39d8f3b9abf06c7f6ffea92a56b2",
|
||||
"math/big": "f9cf132d27a5ac6769d25ac00db4ca6ec6604b62",
|
||||
"math/bits": "4747eff69c7c5bff78dbafc6e8edb68c442b6c8e",
|
||||
"math/cmplx": "c307ef2dc8737aa41e91158f35f7d0f163cccf05",
|
||||
"math/rand": "4495ad9f2e61bb1f02e6347923b627350529b2f7",
|
||||
"mime": "f85d43115f960c97bb6e590db8015305ba93faca",
|
||||
"mime/multipart": "efb04f4c0a01e010cf67b04fecbe0b0663597618",
|
||||
"mime/quotedprintable": "52c35180d6b397bf9a42ac6d5fdea73d1ae4b775",
|
||||
"net": "375f4b17d414f17c07c2c669cf95a2e3247bf1c5",
|
||||
"net/http": "de1b542e8ec0c9395003ac74a51cdd1ce68c82a0",
|
||||
"net/http/cgi": "7d9a8037d075f17165bd1c36ab22d483fa8b3918",
|
||||
"net/http/cookiejar": "f4d6251151539be4db7bfc4f5005be4ac53f0572",
|
||||
"net/http/fcgi": "ff5f6f00282a7cbdd52f157ab817bbc1d2bc4053",
|
||||
"net/http/httptest": "51c9c338b49089594f54d2c749785104ca569c2c",
|
||||
"net/http/httptrace": "8649a80c53a15ff4c38bc4526c8003884760538b",
|
||||
"net/http/httputil": "a015034821be57ac6048e81ef6a29d1a7c176e8d",
|
||||
"net/http/internal": "c295297dd11962d199002fb3dd45940585f59072",
|
||||
"net/internal/socktest": "3f1877c6a4ddc3065aaa0347b826c6cb3d966df3",
|
||||
"net/mail": "fd621b24db1f5c932a28932529920243c3f34f24",
|
||||
"net/rpc": "08ca2b5dd8eeb119b070e03a7e71fb247da27f39",
|
||||
"net/rpc/jsonrpc": "14704235728b176b628d314ca3acf6e0b0a8c1a8",
|
||||
"net/smtp": "c9ca61733682e03ee584f0e3d8c0b34dd85b0548",
|
||||
"net/textproto": "ab8f321dbcaa9ca244d2bd0f58a5688319038b58",
|
||||
"net/url": "c2f7a2a13a47882c49bbc1abb652c9dfbcf4a813",
|
||||
"os": "0f9fbc4e73c99c41e195a60ed7304ccd2ab7d9ba",
|
||||
"os/exec": "fef4dfbcc5ae28a702cff5ed1923aa25a51556c0",
|
||||
"os/signal": "67678bcba5a875e7046e188b078a366f95b6f7ec",
|
||||
"os/user": "46624d908299c9ffcb901a71d36838ae98065cc8",
|
||||
"path": "32616f9b09406d7d1859203dfba4414a7718c017",
|
||||
"path/filepath": "866ffd4a1ec78ab26b12063b21cd5b3daf32da65",
|
||||
"reflect": "797f711384742fb12ba0dee13718b16a78f2a0dc",
|
||||
"regexp": "167f26b4435ec1fb9b278c5e0fb58369c0113065",
|
||||
"regexp/syntax": "776829a63cc75d6850fce14fdc468b083dec695b",
|
||||
"runtime": "4c52130a53ff145103149e371dfe3395f6733d81",
|
||||
"runtime/debug": "459760c61d12afecf51e46b4dd73f44d3dffd459",
|
||||
"runtime/internal/atomic": "26cbece60a0bba5872594de0a51deea8b122784a",
|
||||
"runtime/internal/sys": "c78985091482ec3bf7406df7e9a76dc63dba4c13",
|
||||
"runtime/pprof": "6129f90bb1aec5491ea4423c6cfe7f0fd88f8b7b",
|
||||
"runtime/pprof/internal/profile": "f0979e5efc52777aa6c559ee65359af450cc2dfe",
|
||||
"runtime/race": "fa09b50a9ac163964ca4160e9ea2c0454f865298",
|
||||
"runtime/trace": "186eb273c04e094be94ce1ffec2c0d09395767ac",
|
||||
"sort": "ebbcba118f5a68d8b5042c5cd97679ece38f86ac",
|
||||
"strconv": "487aae7af1ed80ff20d9822bf1f6aefc476a8c0e",
|
||||
"strings": "f2b3805f7f65bdce63db1345b65a323785e076c9",
|
||||
"sync": "e6bf8ef4dceab04e6cdd2915287d8e534daedcc5",
|
||||
"sync/atomic": "743b8165f41a27e4967678d2ccf4a0216a48b1e3",
|
||||
"syscall": "013a2c031bfd18fe3b7198d83dad80184679f168",
|
||||
"testing": "fedbd14559ab16014c4e5f50fe05a98ab1e3a370",
|
||||
"testing/internal/testdeps": "cd107e90ebfbdd07b93f5df6a94826e6fa4a5831",
|
||||
"testing/iotest": "e26af1efad6020bb0c41c17b299cdc7cd21ab300",
|
||||
"testing/quick": "7869be9f9d5a53ae80c7febeaa73c6d3685b5a1f",
|
||||
"text/scanner": "2876f6e377ef9272e5fe02d8ef5326e50e2b52c1",
|
||||
"text/tabwriter": "393d58f6e5188153adfbcd84cb7ee100644b6859",
|
||||
"text/template": "a2a4c1efbdf9c959e1e4227eb7d2e3fb61a990ec",
|
||||
"text/template/parse": "e43a0cb894c746ec1a735c96bc7d834fd0e143e3",
|
||||
"time": "270ceed46d05f6fbd1f9e4642482bf7261bdb367",
|
||||
"unicode": "48df271f8ef77d0cd7a9497a35b46c22e93566e2",
|
||||
"unicode/utf16": "3e38be1cc05e5a48e063af3b5b600700f592214b",
|
||||
"unicode/utf8": "821f302b633f7fc66a82f9aa01e0a2786cfe9872",
|
||||
"unsafe": "735d455ece4348f1178b766a5b01d9fe41097368",
|
||||
}
|
||||
6
vendor/github.com/dave/jsgo/assets/std/prelude.go
generated
vendored
Normal file
6
vendor/github.com/dave/jsgo/assets/std/prelude.go
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
package std
|
||||
|
||||
var Prelude = map[bool]string{
|
||||
false: "2f55d1e8cd60b3405002e438e9fbfd71293e089f",
|
||||
true: "9fa5354baf5360cd05ba2ef218170de88191c7ee",
|
||||
}
|
||||
260
vendor/github.com/dave/jsgo/assets/std/source.go
generated
vendored
Normal file
260
vendor/github.com/dave/jsgo/assets/std/source.go
generated
vendored
Normal file
@@ -0,0 +1,260 @@
|
||||
package std
|
||||
|
||||
var Source = map[string]string{
|
||||
"archive/tar": "ccc410879ab564f0cdb73c29ca3c886ec05c7bd5",
|
||||
"archive/zip": "643782f191e87707832b0123580c2278d255cd07",
|
||||
"bufio": "5e659edd24debe6e1605fe1ea5bea6a8d3383a76",
|
||||
"bytes": "2e77c497d5f4c2f8e2cc1477edab99144662590c",
|
||||
"cmd/addr2line": "7b5b74b8ae081e8f1730690374fce0be126d6322",
|
||||
"cmd/api": "b07dd94d65d1a0b986e3dbf5a634b6851ba71cb7",
|
||||
"cmd/asm": "8288ff512e3750238111f2ee196aec7a3417445d",
|
||||
"cmd/asm/internal/arch": "100e1d75d879a6d5e2597d9f1e0f01d0534c40ac",
|
||||
"cmd/asm/internal/asm": "34f2fd71b22230439d115616c5f52142eea85a60",
|
||||
"cmd/asm/internal/flags": "f3ee16aa4481b46f0d59c3720e421d2bb4f36698",
|
||||
"cmd/asm/internal/lex": "ee7d9289f9132c62a0504b657bb8020e2a60dfdf",
|
||||
"cmd/buildid": "c89976450be818bd861b30f729322bd3b77cd96f",
|
||||
"cmd/cgo": "b13c13884097ec8a4bb12922d99badfb2e72f358",
|
||||
"cmd/compile": "35f45cfd3493dd5b0d60afb3aa248713f58d02c2",
|
||||
"cmd/compile/internal/amd64": "2019840f88684aa790fd368fc5f860f02abd54db",
|
||||
"cmd/compile/internal/arm": "bc5e3cfb24509e209ec6ebd8132ab89dbef3571c",
|
||||
"cmd/compile/internal/arm64": "d71ab7e1538ce8d7acf00ca3215e2c9c3a579164",
|
||||
"cmd/compile/internal/gc": "c0401b25520538bd4b49420399c82c415215ca91",
|
||||
"cmd/compile/internal/mips": "7335540b70dd2ebc868937b35bc51ac79fda014e",
|
||||
"cmd/compile/internal/mips64": "fba107903be3a2af7e4e696908513360e3c5e7ff",
|
||||
"cmd/compile/internal/ppc64": "0a8046b67e8f719406eaf8ec5bfe505e3797d99f",
|
||||
"cmd/compile/internal/s390x": "5ac9e84f9383f8349e67b542bf600b9ae55e494f",
|
||||
"cmd/compile/internal/ssa": "979ac0387d8c936f20eede662f7496c7ef74a230",
|
||||
"cmd/compile/internal/syntax": "a2a63115864183969875decd4cf67470ecfd00bb",
|
||||
"cmd/compile/internal/test": "0e88cb01072819d2886dccd61c3270b56790dcae",
|
||||
"cmd/compile/internal/types": "56cebfa6dd70ed50768bebd4e0a183552ea09c7e",
|
||||
"cmd/compile/internal/x86": "b4fa96c003514e4bdd532bcfc6dd239c32b0bb67",
|
||||
"cmd/cover": "7907e8f1ff26c943db73f7d011e2519121505a00",
|
||||
"cmd/dist": "930ea877211b27862426b307c3856aa2d6f6fe6d",
|
||||
"cmd/doc": "14e62886eb9450f76a30ef8dee974bf980653555",
|
||||
"cmd/fix": "3f395bf0d2c2ab97d4240813464a7767dbdb42eb",
|
||||
"cmd/go": "2dffa35e470844f6432ba4a30871a16cd69d8a70",
|
||||
"cmd/go/internal/base": "072aee9e73b917245139025ba6f640797940144c",
|
||||
"cmd/go/internal/bug": "8eb8fdf42f14505a9545d54eb6d8a6b28f86a0a1",
|
||||
"cmd/go/internal/cache": "f26994401f3a6d67a745d7b5b40c8bbc95a9996a",
|
||||
"cmd/go/internal/cfg": "3cc3555e0d78d160b1515f5b82a763a0327a0067",
|
||||
"cmd/go/internal/clean": "2f12e8b25fd4119fb22f819e30aa7c45f4118205",
|
||||
"cmd/go/internal/cmdflag": "d1653c20931e50cea9a1ba274fa191ec9ee17838",
|
||||
"cmd/go/internal/doc": "8840cfa6e2bc767aae33fbf4b080feab619c1422",
|
||||
"cmd/go/internal/envcmd": "3aaa0d382dd2bd5c5e8ef22c37e35dba18d8bec8",
|
||||
"cmd/go/internal/fix": "d424078ea47526dc9d02c7fa32afb27f9f38f68a",
|
||||
"cmd/go/internal/fmtcmd": "17f2443827a3a2aa5134a0bc78c96d85ffaf040e",
|
||||
"cmd/go/internal/generate": "234aa9aa89cd04be818adf37aa255818895e5718",
|
||||
"cmd/go/internal/get": "5bac3e8dca56263b6da189f3f891ad8a79b94e3d",
|
||||
"cmd/go/internal/help": "edb7d94df6542664fc3a3ab22bb34d80ab5aa7ca",
|
||||
"cmd/go/internal/list": "f6816f79ec83fd31b7b1db2fcf387cd07f75d5ec",
|
||||
"cmd/go/internal/load": "1cc1045b041cca8f7af7775010f8c385b9ab51e2",
|
||||
"cmd/go/internal/run": "b35aa893cb0df5c0cc4414bad81f5a3b97da4da9",
|
||||
"cmd/go/internal/str": "fb18aa51a195dacfd6f507f1597526c71226403c",
|
||||
"cmd/go/internal/test": "08907aa3e61f69ead134034174f9a46834844dff",
|
||||
"cmd/go/internal/tool": "92b25138cef86bfc84bb006550213328d111910b",
|
||||
"cmd/go/internal/version": "66b1014254f0fb76e06395d7d7ffe4baae9705a5",
|
||||
"cmd/go/internal/vet": "e94e4a8e900276d7d3bb26d1049524437340589d",
|
||||
"cmd/go/internal/web": "91ea44c8f05da4253f1e4046e157bf8f10bfe79c",
|
||||
"cmd/go/internal/work": "cc12d63c5dfa257b8603b50754069930ff3307c0",
|
||||
"cmd/gofmt": "5c6baeb0fed28e0da27f6b934184215d37888a7a",
|
||||
"cmd/internal/bio": "3b2ffbb8862421250c922c5eaca61880b07d3b64",
|
||||
"cmd/internal/browser": "57793ec758038f07d7700ffb8be9b3544d34e35b",
|
||||
"cmd/internal/buildid": "c9a2ff5df5e1337d667ac44d97b0b981102d575b",
|
||||
"cmd/internal/dwarf": "be4e9455437b65a1fa29a3aa1f6dad9230d1b6c0",
|
||||
"cmd/internal/edit": "afe712248e87abb49922eab361a8b461b68758ca",
|
||||
"cmd/internal/gcprog": "de85860e0a300073787526b65771a54f748aec7b",
|
||||
"cmd/internal/goobj": "bbe133deecfd6b945adc63b55eddea9d80dcaa6f",
|
||||
"cmd/internal/obj": "39a83e3490b3c8e1f2050ee7e953242e7c78d39e",
|
||||
"cmd/internal/obj/arm": "ba8d151c30024260585478d1561dc1103050b91b",
|
||||
"cmd/internal/obj/arm64": "bafc91ebb4ff648edf74e37c3d4558a3f3847d91",
|
||||
"cmd/internal/obj/mips": "82243f5266cdb2bcb070c8060b093869c6f6218b",
|
||||
"cmd/internal/obj/ppc64": "071779c4637d125b8f6af09797d75b984a2ae1ca",
|
||||
"cmd/internal/obj/s390x": "e0ab0355766bba46a1e8804f2708d6a652401c29",
|
||||
"cmd/internal/obj/x86": "880d8a1b1cf3a3c648759af439569e904c4832d5",
|
||||
"cmd/internal/objabi": "6e8d6f93703def228336d684c1d79c139f326643",
|
||||
"cmd/internal/objfile": "3d4b3fac3b56e297be46ba153a045a9f81023bdc",
|
||||
"cmd/internal/src": "2c090c720389d4628ffd3aa921d4b53ab4ab9d2a",
|
||||
"cmd/internal/sys": "a955213ba9e97d4b7b0bc6bf91871b512c1ea58f",
|
||||
"cmd/internal/test2json": "c7967e20bec8dc78ff3114d0ef3addc71e548899",
|
||||
"cmd/link": "c76b6ad9974becb6423538a3932a0fd4597babb7",
|
||||
"cmd/link/internal/amd64": "ce71b0141291ec64958b1917fbbfd6fd284fb250",
|
||||
"cmd/link/internal/arm": "37a0ea8a1b5a280a47f43d029229f9d576432480",
|
||||
"cmd/link/internal/arm64": "955d4fbb066b9a6b6d0fb4e482397b343b49105f",
|
||||
"cmd/link/internal/ld": "c3bf1d67bc95d6bf8021c42dbd9af9e82268f572",
|
||||
"cmd/link/internal/loadelf": "4b3d1e9c28cd3103336f97df72e24a0caa6be436",
|
||||
"cmd/link/internal/loadmacho": "cf7e22719c406bf76fa785f7d12ed3f4cf375f9c",
|
||||
"cmd/link/internal/loadpe": "4f17bde03f1a203adfd41efe4381dabb3bfe608e",
|
||||
"cmd/link/internal/mips": "fbccee6733b653a479b581e4277a4bbfe49b7987",
|
||||
"cmd/link/internal/mips64": "df940e525cb5f7893ea2d17e9caf6c656e77d5e8",
|
||||
"cmd/link/internal/objfile": "2a4306cf8cbb1fd5202d1578abd8d8f104bf7742",
|
||||
"cmd/link/internal/ppc64": "5840eeceb28a2b09e9d12fe36a4dac384e2fb096",
|
||||
"cmd/link/internal/s390x": "6c3eab29adfc5f6813874ad08c36ef322313b338",
|
||||
"cmd/link/internal/sym": "b56da7b879bdee6bbba68a2c2035d9a128f6cff1",
|
||||
"cmd/link/internal/x86": "a7680162f6a2509ea432b049cedb95715e28cdaa",
|
||||
"cmd/nm": "53e4f5681b9bd383f05c7d51cf39be7a7875274f",
|
||||
"cmd/objdump": "9b4248cb0d3eaac4baabe4266d6ee9ea9d8d7099",
|
||||
"cmd/pack": "c83bbda9671805d91e13dd8fea33e572de4a9a84",
|
||||
"cmd/pprof": "83003b5a46c20630ee726e608a4530edecd01d8a",
|
||||
"cmd/test2json": "9c75eee5256b1fd688e0f615d57e9228eca917f6",
|
||||
"cmd/trace": "98d294ce16acf171a434a6cfc754b113e84c02e3",
|
||||
"cmd/vet": "d4de3ac6ffcd1f92d876c2ee65af4e63ecadbbd2",
|
||||
"cmd/vet/internal/cfg": "a129af3a08823e806b67fe02f74fb23b61154ed5",
|
||||
"cmd/vet/internal/whitelist": "332b410ddb1ff11c5715407256f63fffcf9c82a0",
|
||||
"compress/bzip2": "8f3e40fb446c409868f46919e8c65664a38a5bbb",
|
||||
"compress/flate": "39069902aed58c7a09ff01d5b50c12f41fecca4b",
|
||||
"compress/gzip": "cca6fda0fffda7523d6a20d5dcba21c53bde3356",
|
||||
"compress/lzw": "3e38fc4c673c6ad507d10f8664103b165fadf69e",
|
||||
"compress/zlib": "c9d38327e41c20060efdb32a44316d21ad8bdbb8",
|
||||
"container/heap": "23ed7ff89b243b5f9c39a01094ffff9a11447245",
|
||||
"container/list": "fe581ebdd09b1acb7c36c69b808cd894770cc6e5",
|
||||
"container/ring": "026bd1a27ed2036958e84d0e39ec6ad7a1b4177f",
|
||||
"context": "04e09e44401b4423ca456c1dd86f6652f37d0df2",
|
||||
"crypto": "9fca973f48740f93f0b8193692367d91d7160c11",
|
||||
"crypto/aes": "82f2958b3499efc5b2aaf2d9cb61390c8a3ee9a8",
|
||||
"crypto/cipher": "41b99acbd4e01834e0148c0dc722b0cb7fd5d539",
|
||||
"crypto/des": "d07b5eae49fcc00548957f6670c96715a5357442",
|
||||
"crypto/dsa": "bb6e61e5d0ed7f12524fef8a39d77321f7eb1f32",
|
||||
"crypto/ecdsa": "e4589f115ba87914d0207e9b38dba68a4e117e96",
|
||||
"crypto/elliptic": "588fa3b66864eff7a46a6ebe350666c011c3d44b",
|
||||
"crypto/hmac": "4f2534230f9c601ec6d84d48be5a529d6052afb6",
|
||||
"crypto/internal/cipherhw": "96120000f98d8157bee5b0979370dae292fd8f32",
|
||||
"crypto/md5": "b2b2d5487edfa8912532b831db22429ab7511b66",
|
||||
"crypto/rand": "44560b0ae5b88d631eb0cb197d336c4644de012f",
|
||||
"crypto/rc4": "ad3bdb64b3985f5eaa9a12003831596191a91dea",
|
||||
"crypto/rsa": "5a09162594e471fa116d70c5048299b006e71591",
|
||||
"crypto/sha1": "41b0f2d0a6990da730dd481492f987fb4a65b0ae",
|
||||
"crypto/sha256": "ed9482680becf3a2514c4295064ddaa3983285c4",
|
||||
"crypto/sha512": "08d5d9b05d62305743791e0849d2fcefe09ab37c",
|
||||
"crypto/subtle": "1f6c65fec63959f815f30c241a1d1e366eb2470f",
|
||||
"crypto/tls": "396dc44cbacfa2b76edcc5f92900580ce57278f3",
|
||||
"crypto/x509": "528964728ef2740aef6f39b59259b7d3ee2ba20c",
|
||||
"crypto/x509/pkix": "6763d431044ba402c50bf158f95e58f78a77f458",
|
||||
"database/sql": "10c2f65c0fa79b7557d1bc54e23ce3f12d730ef7",
|
||||
"database/sql/driver": "42479b88966d04719b3bf2aa3a9fa82735571b99",
|
||||
"debug/dwarf": "945b9d9bb59b065c7242fa501135110f47e58830",
|
||||
"debug/elf": "0df0a3f833557b1620a52a5bc456d7800f15553c",
|
||||
"debug/gosym": "969ebe46b87a5b381331df3aa9677b20c2e5ab53",
|
||||
"debug/macho": "f27031e74561c815c7562656237d61b3a8f12b8d",
|
||||
"debug/pe": "61ecfeea98dc1e56bfaab0f1fcde69f831871515",
|
||||
"debug/plan9obj": "55a133ce4cd1bfef7dd251770f3b428b102e8a8d",
|
||||
"encoding": "fd73d60677cd78191c9b4afc2c7611b77c3885ef",
|
||||
"encoding/ascii85": "abc3fa5f4bf7f3af2215f99508ec60a1407cc31d",
|
||||
"encoding/asn1": "44946adac76eb695d79a5af3d3056c9ddb3e54e2",
|
||||
"encoding/base32": "821e54dde0eee994df08ee4a51c83e27173f87dd",
|
||||
"encoding/base64": "5271d32186cd7eeeed9b4aaa13946be5c12dc269",
|
||||
"encoding/binary": "70850e9a837090cc498c0d0370da5627b21d72be",
|
||||
"encoding/csv": "567e96e95cfce97562e06b5e83c8c979a1f30042",
|
||||
"encoding/gob": "d6b12188e4a7590766a5a749b71e459eaaff3d7d",
|
||||
"encoding/hex": "8f648c63fa80537edcb6a3db95ca9cd6cda476b3",
|
||||
"encoding/json": "c1dcccbb1cf158545af07e1eac75024cc53ba59f",
|
||||
"encoding/pem": "23b030241fc269026194b609c8a7ceafb7320591",
|
||||
"encoding/xml": "8bb9c67757ed88a8db0b643078ca4c787de02dac",
|
||||
"errors": "4ca201947bfa9a6fab37643b194cdce9c1a3a293",
|
||||
"expvar": "6488f49b7840b0c24845561f6c76edf5460eb8c1",
|
||||
"flag": "304e361734c4e98b641596f0b759626352694c32",
|
||||
"fmt": "47b59b906c9318ca6bb4c4b7ae7315aa147d846a",
|
||||
"go/ast": "4eb28006c9bb0ddf9ffef4b2faa9bee54d42f71f",
|
||||
"go/build": "a473a05de735a8e40817c55e2e1bfcd37fa5e569",
|
||||
"go/constant": "1edc91255dcbada4a51f6e377447967386af9b08",
|
||||
"go/doc": "8789735f1d7a365ce1384eea2b5e8e886015c08f",
|
||||
"go/format": "7aa0af40cdb21007ef12d56c315e916b96e5f1b2",
|
||||
"go/importer": "9e28303def4819452870e1fe863a50c0dfa8fd42",
|
||||
"go/internal/gccgoimporter": "44d0f081fb2afbe069ea12fc719b981ae3dcee8e",
|
||||
"go/internal/gcimporter": "2a5b1ce56138e358e63f5e9749fd07c0b8cc727b",
|
||||
"go/internal/srcimporter": "8960da6c13f8b2a581bbdab19c5d0290e5f9ac0b",
|
||||
"go/parser": "d68881c0d653f5bd96e717014b7b8bfc1bfcd08d",
|
||||
"go/printer": "83c84309cb092cecfc339679ac666fed7df0911c",
|
||||
"go/scanner": "0437e682c934ba10f1f3cc22d4210950e09c9ffc",
|
||||
"go/token": "f11496105b60d51c0983cbecd65fbf616d5af0ac",
|
||||
"go/types": "7771782cb47df77abb5887f07947b703f1b17ec4",
|
||||
"hash": "57a5d9579cfb5818ce1ef1c22f17f42ec60ccc95",
|
||||
"hash/adler32": "22bc3380ad903053a525e61107ad4e0d4faa66c1",
|
||||
"hash/crc32": "8eae2da368c79fe563b9f077a8cbc22a1edfeb7d",
|
||||
"hash/crc64": "d74bbe67282fdeae222758acd1d7461509b7e42b",
|
||||
"hash/fnv": "210fc1ae2ac299b44c47fd799621df647220730e",
|
||||
"html": "0e5ff9f699d204e268d3e3da99958d2bb1383783",
|
||||
"html/template": "71d929f1e54b4f5f264647042015542cb9c96876",
|
||||
"image": "9ff4ac804269aba78872fd75ee4c66ec9acdc0e9",
|
||||
"image/color": "99b84024dd0e42389fe792705339475d4b639eac",
|
||||
"image/color/palette": "a78544646a25daeb1173f66067275b3e128f6873",
|
||||
"image/draw": "47f1249c360a17795570534ef85bd9f681e2705d",
|
||||
"image/gif": "ab5d4655558804bbb9153f0080114581099e65b5",
|
||||
"image/internal/imageutil": "eab8d946eae6372ca3e38dd06272b4976dc5d9bb",
|
||||
"image/jpeg": "409bdc2f62f21863eee8bac66ea1b9e259bb0173",
|
||||
"image/png": "690a05c289194f82f0e8f2dea7ef3f97e48d945a",
|
||||
"index/suffixarray": "70a13e4fc0fa661ff3c1a5e227f1e04c65ccd744",
|
||||
"internal/nettrace": "bfa72a1350f63e1b6a2a136d442e8c297baf866a",
|
||||
"internal/poll": "4148afafebcc053fcab7cc82ec5c5d3511dd513b",
|
||||
"internal/race": "43b2bd8226c1b1e802ba620126aff38606e1f9e2",
|
||||
"internal/singleflight": "f43efb5e3367e81e04fd40d19c0887b9ea6a61fe",
|
||||
"internal/syscall/windows": "d716bf11b81f535c9baf75436a04d197ed356695",
|
||||
"internal/syscall/windows/registry": "810b8ca14595408db17ed38ed7552ca6f15b1132",
|
||||
"internal/syscall/windows/sysdll": "ab231fa8df91852d1530f9f7dfffa394ea45a6ff",
|
||||
"internal/testenv": "03fe5db87e51665ec55df0beaa76cfcc24f1cd91",
|
||||
"internal/testlog": "3d7cbf7466e1a1d31eedf276814baaf24c824f67",
|
||||
"internal/trace": "06e530436d871264953ba78193b1c1dc3e7490e3",
|
||||
"io": "105843fa66276c950dcb9d40d25828f6c4a52d58",
|
||||
"io/ioutil": "c814d8cbe83ff01544502d6cb0da5dda631507f0",
|
||||
"log": "0b2c5c0f5b95202bf5883d03722b7d3586e74d26",
|
||||
"log/syslog": "d5f313a5f1f55d6c6be4657272e3ee9736a83c81",
|
||||
"math": "f7dbdb551b2358264c58b14dbb53e86f71a6e742",
|
||||
"math/big": "4f94d42f2d863d6c84ce22e79b131465d86e49cd",
|
||||
"math/bits": "52eca7b20019aa1ee1b863e2870ea36acfe90ce5",
|
||||
"math/cmplx": "1d0d01bf318201ada488601df6135a8ea99cd9a5",
|
||||
"math/rand": "abb4ec8a9399c60b39ba83dd26d532be074418d9",
|
||||
"mime": "6501c87e25915296f1dde2a6c5f29709193ebeae",
|
||||
"mime/multipart": "04eb6376deea968deacb6c6e9412b9e9731a9a5e",
|
||||
"mime/quotedprintable": "d845a542bd5b1aabb67b1895141fc3ecb9dfd9b8",
|
||||
"net": "f58b59277b44dd9e7b9a62f8aa932e9ec2ca6b57",
|
||||
"net/http": "ea91e09098750b5aabea064734017f26986855f2",
|
||||
"net/http/cgi": "3fdead89c15844110847d7dd1cf2764a2fdd9137",
|
||||
"net/http/cookiejar": "b3c5c180d8ee36da21a20190bd002f701da20167",
|
||||
"net/http/fcgi": "ee851e17c1ed055528df2a942a9d3a3241a5b3e6",
|
||||
"net/http/httptest": "45789f4624b9156d2f1436ba4078e9aef47e6b04",
|
||||
"net/http/httptrace": "a0aa1a87e4df19fea5d0681d64fa72912c642ffb",
|
||||
"net/http/httputil": "42d8a884508d316fad41e05f36c0f4303763f410",
|
||||
"net/http/internal": "4fdf5c058e11113c40ab17de4f4c5e67d1654d83",
|
||||
"net/internal/socktest": "f001d73baefa9984403ecac54921aaad72d33978",
|
||||
"net/mail": "be2ab9f037a6473025ac6b2fac1cab06973e97a3",
|
||||
"net/rpc": "ae159837c01f37ba083511760063d6b52f971e20",
|
||||
"net/rpc/jsonrpc": "51873ff2a371ddb9f1bc0185ae509e2b7978923d",
|
||||
"net/smtp": "c0d652831155378d19eb075362c4c521418ef421",
|
||||
"net/textproto": "063434b26a921295f23dcea4b8accd006e7fa786",
|
||||
"net/url": "9d577cbd13b5b65fdb7296a67393d91467df6f9f",
|
||||
"os": "5ae558a189f08fd91dd51864d0e55d849494720e",
|
||||
"os/exec": "7c4cb41379b5c62800b3c121579c8fd4b0cec7a2",
|
||||
"os/signal": "c4793c08e2bf17d4c123aa52e4c9e2a7cd368a89",
|
||||
"os/user": "2dc102b8fa7617b00ac0bd035e4025a8d4209e6d",
|
||||
"path": "1a0c50f9e1d05cb780a0480e25526b84545a6e2f",
|
||||
"path/filepath": "6a69f2eabeba19cb5658c122b71cdf913c73ef90",
|
||||
"reflect": "d8ef1f03568e260b370a61c2498aee726ebb5c67",
|
||||
"regexp": "9eb5755968b4837f93fb604400da093ec82b1a86",
|
||||
"regexp/syntax": "737deda762d3a46efdb4058b952ef062e6a15cb2",
|
||||
"runtime": "7009e4a26e82a9d62043b7c9087ea36f862b7b7e",
|
||||
"runtime/debug": "0e842735e9a9b38ea35e75febcfaaa4a5f7a61f4",
|
||||
"runtime/internal/atomic": "bcb72da07b62aa4eb59ee1537e1c6921f65facc9",
|
||||
"runtime/internal/sys": "c1843f187b5ae5c17e95e981a0901c1e85cd056f",
|
||||
"runtime/pprof": "96913f5f8a0b81659e706fa852a7cbe9a4896be8",
|
||||
"runtime/pprof/internal/profile": "0a641f0c0c03791863cea04ceb3b1c5ed12fa0a3",
|
||||
"runtime/race": "22ee01048ca4a7e99a6b125b0fd9d4ebf0473a90",
|
||||
"runtime/trace": "273633fe85b183b2dfb8a11118b6e4c9d3a0413c",
|
||||
"sort": "b1a93a2abd9f289b6388b21b6f43f6898adf5d5a",
|
||||
"strconv": "518ece4f7ed5d4a77b0770d4533b2c6517efc817",
|
||||
"strings": "13e302986e73393f13486b94b17401b6115f0a30",
|
||||
"sync": "249ae278c3d39f0f01772781fb9e62236df956f3",
|
||||
"sync/atomic": "c2f59fd712f139b3e01983f06c2e57fc97d64e7f",
|
||||
"syscall": "ae61f88c4213ec0d769af11358c206ab07a316ad",
|
||||
"testing": "8a8354c7bf50684f23aef2810da344c72566b90f",
|
||||
"testing/internal/testdeps": "a4a23520a9d7ff6cbd3ebaa147ec80aee536891e",
|
||||
"testing/iotest": "e844db6b62b08f677ac696ca7fc1a3fd754d48d4",
|
||||
"testing/quick": "44a58f3cae7131ac6ef82c47750804904f17e2e3",
|
||||
"text/scanner": "8791c8b3d1759a2ee8e3b40d86da0cf3e25e88d6",
|
||||
"text/tabwriter": "262949b17b2930092489e89fdca3a53c598a990c",
|
||||
"text/template": "44f18a8087f1a51ecb1395d54f383bd84e38f46e",
|
||||
"text/template/parse": "bdf0cfb3f000bcf4f2dc9ff0f618db9b1d483c5b",
|
||||
"time": "2eefd7ef39c32f7a7e86c6293214c109394d4500",
|
||||
"unicode": "c2721a6f1c6d636db283dae415f9824aafd7d2f5",
|
||||
"unicode/utf16": "ef77f2b51ab7c06b67398888a6353c12478e90e5",
|
||||
"unicode/utf8": "647282b3fe77fb6a3040724314d97f61997f5c6e",
|
||||
"unsafe": "48c08f01e08a6c28b5aa7b4455a241a4c4d75d92",
|
||||
}
|
||||
1
vendor/github.com/dave/jsgo/assets/std/std.go
generated
vendored
Normal file
1
vendor/github.com/dave/jsgo/assets/std/std.go
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
package std
|
||||
6
vendor/github.com/dave/jsgo/assets/std/wasm.go
generated
vendored
Normal file
6
vendor/github.com/dave/jsgo/assets/std/wasm.go
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
package std
|
||||
|
||||
var Wasm = map[bool]string{
|
||||
false: "3912571228e6d97b1b91da16658e279128083f26",
|
||||
true: "f0f70dfa57f349d021edfc57d8e5d1d993217e15",
|
||||
}
|
||||
17
vendor/github.com/dave/jsgo/server/servermsg/messages.go
generated
vendored
Normal file
17
vendor/github.com/dave/jsgo/server/servermsg/messages.go
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
package servermsg
|
||||
|
||||
import "encoding/gob"
|
||||
|
||||
func RegisterTypes() {
|
||||
gob.Register(Queueing{})
|
||||
gob.Register(Error{})
|
||||
}
|
||||
|
||||
type Queueing struct {
|
||||
Position int
|
||||
Done bool
|
||||
}
|
||||
|
||||
type Error struct {
|
||||
Message string
|
||||
}
|
||||
103
vendor/github.com/dave/jsgo/server/wasm/messages/messages.go
generated
vendored
Normal file
103
vendor/github.com/dave/jsgo/server/wasm/messages/messages.go
generated
vendored
Normal file
@@ -0,0 +1,103 @@
|
||||
package messages
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"compress/gzip"
|
||||
"encoding/gob"
|
||||
|
||||
"github.com/dave/jsgo/server/servermsg"
|
||||
"github.com/dave/services"
|
||||
"github.com/dave/services/constor/constormsg"
|
||||
"github.com/gorilla/websocket"
|
||||
)
|
||||
|
||||
type Payload struct {
|
||||
Message services.Message
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
||||
// Commands:
|
||||
gob.Register(DeployQuery{})
|
||||
|
||||
// Data messages:
|
||||
gob.Register(DeployQueryResponse{})
|
||||
gob.Register(DeployFileKey{})
|
||||
gob.Register(DeployFile{})
|
||||
gob.Register(DeployPayload{})
|
||||
gob.Register(DeployDone{})
|
||||
gob.Register(DeployClientVersionNotSupported{})
|
||||
|
||||
// Initialise types in servermsg
|
||||
servermsg.RegisterTypes()
|
||||
|
||||
// Initialise types in constormsg
|
||||
constormsg.RegisterTypes()
|
||||
}
|
||||
|
||||
// Client sends a DeployQuery with all offered files.
|
||||
// Server responds with DeployQueryResponse, with all required files listed.
|
||||
// Client sends a DeployFile for each required file.
|
||||
|
||||
type DeployQuery struct {
|
||||
Version string
|
||||
Files []DeployFileKey
|
||||
}
|
||||
|
||||
type DeployQueryResponse struct {
|
||||
Required []DeployFileKey
|
||||
}
|
||||
|
||||
type DeployPayload struct {
|
||||
Files []DeployFile
|
||||
}
|
||||
|
||||
type DeployClientVersionNotSupported struct{}
|
||||
|
||||
type DeployFileKey struct {
|
||||
Type DeployFileType
|
||||
Hash string // sha1 hash of contents
|
||||
}
|
||||
|
||||
type DeployFile struct {
|
||||
DeployFileKey
|
||||
Contents []byte // in the initial CommandDeploy, this is nil
|
||||
}
|
||||
|
||||
type DeployDone struct{}
|
||||
|
||||
type DeployFileType string
|
||||
|
||||
const (
|
||||
DeployFileTypeIndex DeployFileType = "index"
|
||||
DeployFileTypeLoader = "loader"
|
||||
DeployFileTypeWasm = "wasm"
|
||||
)
|
||||
|
||||
func Marshal(in services.Message) ([]byte, int, error) {
|
||||
p := Payload{in}
|
||||
buf := &bytes.Buffer{}
|
||||
gzw := gzip.NewWriter(buf)
|
||||
if err := gob.NewEncoder(gzw).Encode(p); err != nil {
|
||||
return nil, 0, err
|
||||
}
|
||||
if err := gzw.Close(); err != nil {
|
||||
return nil, 0, err
|
||||
}
|
||||
return buf.Bytes(), websocket.BinaryMessage, nil
|
||||
}
|
||||
|
||||
func Unmarshal(in []byte) (services.Message, error) {
|
||||
var p Payload
|
||||
gzr, err := gzip.NewReader(bytes.NewBuffer(in))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := gob.NewDecoder(gzr).Decode(&p); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := gzr.Close(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return p.Message, nil
|
||||
}
|
||||
5
vendor/github.com/dave/services/.gitignore
generated
vendored
Normal file
5
vendor/github.com/dave/services/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
*.iml
|
||||
.DS_Store
|
||||
.idea/
|
||||
coverage.out
|
||||
.coverage/
|
||||
7
vendor/github.com/dave/services/LICENSE
generated
vendored
Normal file
7
vendor/github.com/dave/services/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
Copyright (c) 2018 David Brophy
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
24
vendor/github.com/dave/services/builder/LICENSE
generated
vendored
Normal file
24
vendor/github.com/dave/services/builder/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
Copyright (c) 2013 Richard Musiol. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following disclaimer
|
||||
in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
3
vendor/github.com/dave/services/client.go
generated
vendored
Normal file
3
vendor/github.com/dave/services/client.go
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
package services
|
||||
|
||||
type Message interface{}
|
||||
15
vendor/github.com/dave/services/constor/constormsg/messages.go
generated
vendored
Normal file
15
vendor/github.com/dave/services/constor/constormsg/messages.go
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
package constormsg
|
||||
|
||||
import "encoding/gob"
|
||||
|
||||
func RegisterTypes() {
|
||||
gob.Register(Storing{})
|
||||
}
|
||||
|
||||
type Storing struct {
|
||||
Starting bool
|
||||
Finished int
|
||||
Unchanged int
|
||||
Remain int
|
||||
Done bool
|
||||
}
|
||||
27
vendor/github.com/dave/services/getter/get/LICENCE
generated
vendored
Normal file
27
vendor/github.com/dave/services/getter/get/LICENCE
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
Copyright (c) 2009 The Go Authors. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following disclaimer
|
||||
in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* Neither the name of Google Inc. nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
41
vendor/github.com/dave/services/server.go
generated
vendored
Normal file
41
vendor/github.com/dave/services/server.go
generated
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
// +build !js
|
||||
|
||||
package services
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
|
||||
"cloud.google.com/go/datastore"
|
||||
billy "gopkg.in/src-d/go-billy.v4"
|
||||
)
|
||||
|
||||
// Fileserver provides the functionality to persist files and host them for web delivery. In production
|
||||
// we use GCS buckets. In local storage mode we use a temporary directory
|
||||
type Fileserver interface {
|
||||
Write(ctx context.Context, bucket, name string, reader io.Reader, overwrite bool, contentType, cacheControl string) (saved bool, err error)
|
||||
Read(ctx context.Context, bucket, name string, writer io.Writer) (found bool, err error)
|
||||
Exists(ctx context.Context, bucket, name string) (bool, error)
|
||||
}
|
||||
|
||||
// Database provides the functionality to persist and recall data. In production we use the gcs datastore.
|
||||
// In local development mode we use a memory data store.
|
||||
type Database interface {
|
||||
Get(ctx context.Context, key *datastore.Key, dst interface{}) (err error)
|
||||
Put(ctx context.Context, key *datastore.Key, src interface{}) (*datastore.Key, error)
|
||||
GetMulti(ctx context.Context, keys []*datastore.Key, dst interface{}) (err error)
|
||||
PutMulti(ctx context.Context, keys []*datastore.Key, src interface{}) (_ []*datastore.Key, err error)
|
||||
}
|
||||
|
||||
// Resolver provides the functionality to resolve package paths to repo URLs. In production mode this
|
||||
// uses the `go get` codebase. In local mode we scan the gopath.
|
||||
type Resolver interface {
|
||||
Resolve(ctx context.Context, path string) (url string, root string, err error)
|
||||
}
|
||||
|
||||
// Fetcher fetches the worktree for a git repository. In production the repo is cloned or loaded from
|
||||
// the persistence cache and fetched to ensure it's update. In local development mode the repo is loaded
|
||||
// from the local GOPATH.
|
||||
type Fetcher interface {
|
||||
Fetch(ctx context.Context, url string) (billy.Filesystem, error)
|
||||
}
|
||||
5
vendor/github.com/dave/wasmgo/.gitignore
generated
vendored
Normal file
5
vendor/github.com/dave/wasmgo/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
*.iml
|
||||
.DS_Store
|
||||
.idea/
|
||||
coverage.out
|
||||
.coverage/
|
||||
7
vendor/github.com/dave/wasmgo/LICENSE
generated
vendored
Normal file
7
vendor/github.com/dave/wasmgo/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
Copyright (c) 2018 David Brophy
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
56
vendor/github.com/dave/wasmgo/README.md
generated
vendored
Normal file
56
vendor/github.com/dave/wasmgo/README.md
generated
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
<a href="https://patreon.com/davebrophy" title="Help with my hosting bills using Patreon"><img src="https://img.shields.io/badge/patreon-donate-yellow.svg" style="max-width:100%;"></a>
|
||||
|
||||
# wasmgo
|
||||
|
||||
The `wasmgo` command compiles Go to WASM and deploys to the [jsgo.io](https://github.com/dave/jsgo)
|
||||
CDN.
|
||||
|
||||
### Install
|
||||
|
||||
`go get -u github.com/dave/wasmgo`
|
||||
|
||||
|
||||
### Usage
|
||||
|
||||
```
|
||||
Compiles Go to WASM and deploys to the jsgo.io CDN.
|
||||
|
||||
Usage:
|
||||
wasmgo deploy [package] [flags]
|
||||
|
||||
Flags:
|
||||
-b, --build string Build tags to pass to the go build command.
|
||||
-c, --command string Name of the go command. (default "go")
|
||||
-f, --flags string Flags to pass to the go build command.
|
||||
-h, --help help for deploy
|
||||
-i, --index string Specify the index page. (default "index.wasmgo.html")
|
||||
-j, --json Return all template variables as a json blob from the deploy command.
|
||||
-o, --open Open the page in a browser.
|
||||
-t, --template string Template defining the output returned by the deploy command. Variables: Page (string), Loader (string). (default "{{ .Page }}")
|
||||
-v, --verbose Show detailed status messages.
|
||||
```
|
||||
|
||||
### Example
|
||||
|
||||
Here's a simple hello world:
|
||||
|
||||
```
|
||||
wasmgo deploy github.com/dave/wasmgo/helloworld
|
||||
```
|
||||
|
||||
### Index
|
||||
|
||||
You may specify a custom index page by including `index.wasmgo.html` in your project or by using the `index`
|
||||
command line flag.
|
||||
|
||||
Your index page should look something like this:
|
||||
|
||||
```html
|
||||
<html>
|
||||
<head><meta charset="utf-8"></head>
|
||||
<body>
|
||||
<script src="{{ .Script }}"></script>
|
||||
<script src="{{ .Loader }}"></script>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
14
vendor/github.com/dave/wasmgo/cmd/cmdconfig/config.go
generated
vendored
Normal file
14
vendor/github.com/dave/wasmgo/cmd/cmdconfig/config.go
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
package cmdconfig
|
||||
|
||||
type Config struct {
|
||||
Port int
|
||||
Index string
|
||||
Template string
|
||||
Json bool
|
||||
Verbose bool
|
||||
Open bool
|
||||
Command string
|
||||
Flags string
|
||||
BuildTags string
|
||||
Path string
|
||||
}
|
||||
37
vendor/github.com/dave/wasmgo/cmd/deploy.go
generated
vendored
Normal file
37
vendor/github.com/dave/wasmgo/cmd/deploy.go
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/dave/wasmgo/cmd/deployer"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
func init() {
|
||||
deployCmd.PersistentFlags().StringVarP(&global.Index, "index", "i", "index.wasmgo.html", "Specify the index page.")
|
||||
deployCmd.PersistentFlags().BoolVarP(&global.Verbose, "verbose", "v", false, "Show detailed status messages.")
|
||||
deployCmd.PersistentFlags().BoolVarP(&global.Open, "open", "o", false, "Open the page in a browser.")
|
||||
deployCmd.PersistentFlags().StringVarP(&global.Command, "command", "c", "go", "Name of the go command.")
|
||||
deployCmd.PersistentFlags().StringVarP(&global.Flags, "flags", "f", "", "Flags to pass to the go build command.")
|
||||
deployCmd.PersistentFlags().StringVarP(&global.BuildTags, "build", "b", "", "Build tags to pass to the go build command.")
|
||||
deployCmd.PersistentFlags().StringVarP(&global.Template, "template", "t", "{{ .Page }}", "Template defining the output returned by the deploy command. Variables: Page (string), Loader (string).")
|
||||
deployCmd.PersistentFlags().BoolVarP(&global.Json, "json", "j", false, "Return all template variables as a json blob from the deploy command.")
|
||||
rootCmd.AddCommand(deployCmd)
|
||||
}
|
||||
|
||||
var deployCmd = &cobra.Command{
|
||||
Use: "deploy [package]",
|
||||
Short: "Compile and deploy",
|
||||
Long: "Compiles Go to WASM and deploys to the jsgo.io CDN.",
|
||||
Args: cobra.RangeArgs(0, 1),
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
if len(args) > 0 {
|
||||
global.Path = args[0]
|
||||
}
|
||||
if err := deployer.Start(global); err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error: %s\n", err.Error())
|
||||
os.Exit(1)
|
||||
}
|
||||
},
|
||||
}
|
||||
342
vendor/github.com/dave/wasmgo/cmd/deployer/deployer.go
generated
vendored
Normal file
342
vendor/github.com/dave/wasmgo/cmd/deployer/deployer.go
generated
vendored
Normal file
@@ -0,0 +1,342 @@
|
||||
package deployer
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"crypto/sha1"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"text/template"
|
||||
|
||||
"github.com/dave/jsgo/assets/std"
|
||||
"github.com/dave/jsgo/server/servermsg"
|
||||
"github.com/dave/jsgo/server/wasm/messages"
|
||||
"github.com/dave/services/constor/constormsg"
|
||||
"github.com/dave/wasmgo/cmd/cmdconfig"
|
||||
"github.com/dave/wasmgo/config"
|
||||
"github.com/gorilla/websocket"
|
||||
"github.com/pkg/browser"
|
||||
)
|
||||
|
||||
const CLIENT_VERSION = "1.0.0"
|
||||
|
||||
func Start(cfg *cmdconfig.Config) error {
|
||||
|
||||
var debug io.Writer
|
||||
if cfg.Verbose {
|
||||
debug = os.Stdout
|
||||
} else {
|
||||
debug = ioutil.Discard
|
||||
}
|
||||
|
||||
// create a temp dir
|
||||
tempDir, err := ioutil.TempDir("", "")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer os.RemoveAll(tempDir)
|
||||
|
||||
fpath := filepath.Join(tempDir, "out.wasm")
|
||||
|
||||
sourceDir, err := runGoList(cfg)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := runGoBuild(cfg, fpath, debug); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
binaryBytes, err := ioutil.ReadFile(fpath)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
binarySha := sha1.New()
|
||||
if _, err := io.Copy(binarySha, bytes.NewBuffer(binaryBytes)); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
files := map[messages.DeployFileType]messages.DeployFile{}
|
||||
|
||||
files[messages.DeployFileTypeWasm] = messages.DeployFile{
|
||||
DeployFileKey: messages.DeployFileKey{
|
||||
Type: messages.DeployFileTypeWasm,
|
||||
Hash: fmt.Sprintf("%x", binarySha.Sum(nil)),
|
||||
},
|
||||
Contents: binaryBytes,
|
||||
}
|
||||
|
||||
loaderBuf := &bytes.Buffer{}
|
||||
loaderSha := sha1.New()
|
||||
wasmUrl := fmt.Sprintf("%s://%s/%x.wasm", config.Protocol[config.Pkg], config.Host[config.Pkg], binarySha.Sum(nil))
|
||||
loaderVars := struct{ Binary string }{
|
||||
Binary: wasmUrl,
|
||||
}
|
||||
if err := loaderTemplateMin.Execute(io.MultiWriter(loaderBuf, loaderSha), loaderVars); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
files[messages.DeployFileTypeLoader] = messages.DeployFile{
|
||||
DeployFileKey: messages.DeployFileKey{
|
||||
Type: messages.DeployFileTypeLoader,
|
||||
Hash: fmt.Sprintf("%x", loaderSha.Sum(nil)),
|
||||
},
|
||||
Contents: loaderBuf.Bytes(),
|
||||
}
|
||||
|
||||
indexBuf := &bytes.Buffer{}
|
||||
indexSha := sha1.New()
|
||||
loaderUrl := fmt.Sprintf("%s://%s/%x.js", config.Protocol[config.Pkg], config.Host[config.Pkg], loaderSha.Sum(nil))
|
||||
indexVars := struct{ Script, Loader string }{
|
||||
Script: fmt.Sprintf("%s://%s/wasm_exec.%s.js", config.Protocol[config.Pkg], config.Host[config.Pkg], std.Wasm[true]),
|
||||
Loader: loaderUrl,
|
||||
}
|
||||
indexTemplate := defaultIndexTemplate
|
||||
if cfg.Index != "" {
|
||||
indexFilename := cfg.Index
|
||||
if cfg.Path != "" {
|
||||
indexFilename = filepath.Join(sourceDir, cfg.Index)
|
||||
}
|
||||
indexTemplateBytes, err := ioutil.ReadFile(indexFilename)
|
||||
if err != nil && !os.IsNotExist(err) {
|
||||
return err
|
||||
}
|
||||
if err == nil {
|
||||
indexTemplate, err = template.New("main").Parse(string(indexTemplateBytes))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
if err := indexTemplate.Execute(io.MultiWriter(indexBuf, indexSha), indexVars); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
files[messages.DeployFileTypeIndex] = messages.DeployFile{
|
||||
DeployFileKey: messages.DeployFileKey{
|
||||
Type: messages.DeployFileTypeIndex,
|
||||
Hash: fmt.Sprintf("%x", indexSha.Sum(nil)),
|
||||
},
|
||||
Contents: indexBuf.Bytes(),
|
||||
}
|
||||
|
||||
indexUrl := fmt.Sprintf("%s://%s/%x", config.Protocol[config.Index], config.Host[config.Index], indexSha.Sum(nil))
|
||||
|
||||
message := messages.DeployQuery{
|
||||
Version: CLIENT_VERSION,
|
||||
Files: []messages.DeployFileKey{
|
||||
files[messages.DeployFileTypeWasm].DeployFileKey,
|
||||
files[messages.DeployFileTypeIndex].DeployFileKey,
|
||||
files[messages.DeployFileTypeLoader].DeployFileKey,
|
||||
},
|
||||
}
|
||||
|
||||
fmt.Fprintln(debug, "Querying server...")
|
||||
|
||||
protocol := "wss"
|
||||
if config.Protocol[config.Wasm] == "http" {
|
||||
protocol = "ws"
|
||||
}
|
||||
conn, _, err := websocket.DefaultDialer.Dial(
|
||||
fmt.Sprintf("%s://%s/_wasm/", protocol, config.Host[config.Wasm]),
|
||||
http.Header{"Origin": []string{fmt.Sprintf("%s://%s/", config.Protocol[config.Wasm], config.Host[config.Wasm])}},
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
messageBytes, messageType, err := messages.Marshal(message)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := conn.WriteMessage(messageType, messageBytes); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
var response messages.DeployQueryResponse
|
||||
var done bool
|
||||
for !done {
|
||||
_, replyBytes, err := conn.ReadMessage()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
message, err := messages.Unmarshal(replyBytes)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
switch message := message.(type) {
|
||||
case messages.DeployQueryResponse:
|
||||
response = message
|
||||
done = true
|
||||
case servermsg.Queueing:
|
||||
// don't print
|
||||
case servermsg.Error:
|
||||
return errors.New(message.Message)
|
||||
case messages.DeployClientVersionNotSupported:
|
||||
return errors.New("this client version is not supported - try `go get -u github.com/dave/wasmgo`")
|
||||
default:
|
||||
// unexpected
|
||||
fmt.Fprintf(debug, "Unexpected message from server: %#v\n", message)
|
||||
}
|
||||
}
|
||||
|
||||
if len(response.Required) > 0 {
|
||||
|
||||
fmt.Fprintf(debug, "Files required: %d.\n", len(response.Required))
|
||||
fmt.Fprintln(debug, "Bundling required files...")
|
||||
|
||||
var required []messages.DeployFile
|
||||
for _, k := range response.Required {
|
||||
file := files[k.Type]
|
||||
if file.Hash == "" {
|
||||
return errors.New("server requested file not found")
|
||||
}
|
||||
required = append(required, file)
|
||||
}
|
||||
|
||||
payload := messages.DeployPayload{Files: required}
|
||||
payloadBytes, payloadType, err := messages.Marshal(payload)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := conn.WriteMessage(payloadType, payloadBytes); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
fmt.Fprintf(debug, "Sending payload: %dKB.\n", len(payloadBytes)/1024)
|
||||
|
||||
done = false
|
||||
for !done {
|
||||
_, replyBytes, err := conn.ReadMessage()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
message, err := messages.Unmarshal(replyBytes)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
switch message := message.(type) {
|
||||
case messages.DeployDone:
|
||||
done = true
|
||||
case servermsg.Queueing:
|
||||
// don't print
|
||||
case servermsg.Error:
|
||||
return errors.New(message.Message)
|
||||
case constormsg.Storing:
|
||||
if message.Remain > 0 || message.Finished > 0 {
|
||||
fmt.Fprintf(debug, "Storing, %d to go.\n", message.Remain)
|
||||
}
|
||||
default:
|
||||
// unexpected
|
||||
fmt.Fprintf(debug, "Unexpected message from server: %#v\n", message)
|
||||
}
|
||||
}
|
||||
|
||||
fmt.Fprintln(debug, "Sending done.")
|
||||
|
||||
} else {
|
||||
fmt.Fprintln(debug, "No files required.")
|
||||
}
|
||||
|
||||
outputVars := struct {
|
||||
Page string
|
||||
Loader string
|
||||
}{
|
||||
Page: indexUrl,
|
||||
Loader: loaderUrl,
|
||||
}
|
||||
|
||||
if cfg.Json {
|
||||
out, err := json.Marshal(outputVars)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
fmt.Println(string(out))
|
||||
} else {
|
||||
tpl, err := template.New("main").Parse(cfg.Template)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
tpl.Execute(os.Stdout, outputVars)
|
||||
fmt.Println("")
|
||||
}
|
||||
|
||||
if cfg.Open {
|
||||
browser.OpenURL(indexUrl)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func runGoBuild(cfg *cmdconfig.Config, fpath string, debug io.Writer) error {
|
||||
args := []string{"build", "-o", fpath}
|
||||
|
||||
extraFlags := strings.Fields(cfg.Flags)
|
||||
for _, f := range extraFlags {
|
||||
args = append(args, f)
|
||||
}
|
||||
|
||||
if cfg.BuildTags != "" {
|
||||
args = append(args, "-tags", cfg.BuildTags)
|
||||
}
|
||||
|
||||
path := "."
|
||||
if cfg.Path != "" {
|
||||
path = cfg.Path
|
||||
}
|
||||
args = append(args, path)
|
||||
|
||||
fmt.Fprintln(debug, "Compiling...")
|
||||
|
||||
cmd := exec.Command(cfg.Command, args...)
|
||||
cmd.Env = os.Environ()
|
||||
cmd.Env = append(cmd.Env, "GOARCH=wasm")
|
||||
cmd.Env = append(cmd.Env, "GOOS=js")
|
||||
output, err := cmd.CombinedOutput()
|
||||
if err != nil {
|
||||
if strings.Contains(string(output), "unsupported GOOS/GOARCH pair js/wasm") {
|
||||
return errors.New("you need Go v1.11 to compile WASM. It looks like your default `go` command is not v1.11. Perhaps you need the -c flag to specify a custom command name - e.g. `-c=go1.11beta3`")
|
||||
}
|
||||
return fmt.Errorf("%v: %s", err, string(output))
|
||||
}
|
||||
if len(output) > 0 {
|
||||
return fmt.Errorf("%s", string(output))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func runGoList(cfg *cmdconfig.Config) (string, error) {
|
||||
args := []string{"list"}
|
||||
|
||||
if cfg.BuildTags != "" {
|
||||
args = append(args, "-tags", cfg.BuildTags)
|
||||
}
|
||||
|
||||
args = append(args, "-f", "{{.Dir}}")
|
||||
|
||||
path := "."
|
||||
if cfg.Path != "" {
|
||||
path = cfg.Path
|
||||
}
|
||||
args = append(args, path)
|
||||
|
||||
cmd := exec.Command(cfg.Command, args...)
|
||||
cmd.Env = os.Environ()
|
||||
cmd.Env = append(cmd.Env, "GOARCH=wasm")
|
||||
cmd.Env = append(cmd.Env, "GOOS=js")
|
||||
output, err := cmd.CombinedOutput()
|
||||
if err != nil {
|
||||
if strings.Contains(string(output), "unsupported GOOS/GOARCH pair js/wasm") {
|
||||
return "", errors.New("you need Go v1.11 to compile WASM. It looks like your default `go` command is not v1.11. Perhaps you need the -c flag to specify a custom command name - e.g. `-c=go1.11beta3`")
|
||||
}
|
||||
return "", fmt.Errorf("%v: %s", err, string(output))
|
||||
}
|
||||
return string(output), nil
|
||||
}
|
||||
24
vendor/github.com/dave/wasmgo/cmd/deployer/templates.go
generated
vendored
Normal file
24
vendor/github.com/dave/wasmgo/cmd/deployer/templates.go
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
package deployer
|
||||
|
||||
import "text/template"
|
||||
|
||||
var defaultIndexTemplate = template.Must(template.New("main").Parse(`<html>
|
||||
<head><meta charset="utf-8"></head>
|
||||
<body>
|
||||
<script src="{{ .Script }}"></script>
|
||||
<script src="{{ .Loader }}"></script>
|
||||
</body>
|
||||
</html>`))
|
||||
|
||||
var loaderTemplate = template.Must(template.New("main").Parse(`if (!WebAssembly.instantiateStreaming) {
|
||||
WebAssembly.instantiateStreaming = async (resp, importObject) => {
|
||||
const source = await (await resp).arrayBuffer();
|
||||
return await WebAssembly.instantiate(source, importObject);
|
||||
};
|
||||
}
|
||||
const go = new Go();
|
||||
WebAssembly.instantiateStreaming(fetch("{{ .Binary }}"), go.importObject).then(result => {
|
||||
go.run(result.instance);
|
||||
});`))
|
||||
|
||||
var loaderTemplateMin = template.Must(template.New("main").Parse(`WebAssembly.instantiateStreaming||(WebAssembly.instantiateStreaming=(async(t,a)=>{const e=await(await t).arrayBuffer();return await WebAssembly.instantiate(e,a)}));const go=new Go;WebAssembly.instantiateStreaming(fetch("{{ .Binary }}"),go.importObject).then(t=>{go.run(t.instance)});`))
|
||||
23
vendor/github.com/dave/wasmgo/cmd/root.go
generated
vendored
Normal file
23
vendor/github.com/dave/wasmgo/cmd/root.go
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/dave/wasmgo/cmd/cmdconfig"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var global = &cmdconfig.Config{}
|
||||
|
||||
var rootCmd = &cobra.Command{
|
||||
Use: "wasmgo",
|
||||
Short: "Compile Go to WASM, test locally or deploy to jsgo.io",
|
||||
}
|
||||
|
||||
func Execute() {
|
||||
if err := rootCmd.Execute(); err != nil {
|
||||
fmt.Println(err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
18
vendor/github.com/dave/wasmgo/cmd/serve.go
generated
vendored
Normal file
18
vendor/github.com/dave/wasmgo/cmd/serve.go
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
package cmd
|
||||
|
||||
/*
|
||||
func init() {
|
||||
serveCmd.PersistentFlags().IntVarP(&global.Port, "port", "p", 8080, "Server port. If this is in use, an unused port is chosen.")
|
||||
rootCmd.AddCommand(serveCmd)
|
||||
}
|
||||
|
||||
var serveCmd = &cobra.Command{
|
||||
Use: "serve [package]",
|
||||
Short: "Serve locally",
|
||||
Long: "Starts a webserver locally, and recompiles the WASM on every page refresh, for testing and development.",
|
||||
Args: cobra.RangeArgs(0, 1),
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
fmt.Println("Serve mode coming soon...")
|
||||
},
|
||||
}
|
||||
*/
|
||||
20
vendor/github.com/dave/wasmgo/cmd/version.go
generated
vendored
Normal file
20
vendor/github.com/dave/wasmgo/cmd/version.go
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/dave/wasmgo/cmd/deployer"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
func init() {
|
||||
rootCmd.AddCommand(versionCmd)
|
||||
}
|
||||
|
||||
var versionCmd = &cobra.Command{
|
||||
Use: "version",
|
||||
Short: "Show client version number",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
fmt.Println(deployer.CLIENT_VERSION)
|
||||
},
|
||||
}
|
||||
7
vendor/github.com/dave/wasmgo/config/config.dev.go
generated
vendored
Normal file
7
vendor/github.com/dave/wasmgo/config/config.dev.go
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
// +build dev
|
||||
|
||||
package config
|
||||
|
||||
const (
|
||||
DEV = true
|
||||
)
|
||||
7
vendor/github.com/dave/wasmgo/config/config.prod.go
generated
vendored
Normal file
7
vendor/github.com/dave/wasmgo/config/config.prod.go
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
// +build !dev
|
||||
|
||||
package config
|
||||
|
||||
const (
|
||||
DEV = false
|
||||
)
|
||||
7
vendor/github.com/dave/wasmgo/config/constants.go
generated
vendored
Normal file
7
vendor/github.com/dave/wasmgo/config/constants.go
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
package config
|
||||
|
||||
const (
|
||||
Wasm = "wasm"
|
||||
Index = "index"
|
||||
Pkg = "pkg"
|
||||
)
|
||||
19
vendor/github.com/dave/wasmgo/config/hosts.dev.go
generated
vendored
Normal file
19
vendor/github.com/dave/wasmgo/config/hosts.dev.go
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// +build dev,!local
|
||||
|
||||
package config
|
||||
|
||||
const (
|
||||
LOCAL = false
|
||||
)
|
||||
|
||||
var Host = map[string]string{
|
||||
Wasm: "localhost:8083",
|
||||
Pkg: "dev-pkg.jsgo.io",
|
||||
Index: "dev-index.jsgo.io",
|
||||
}
|
||||
|
||||
var Protocol = map[string]string{
|
||||
Wasm: "http",
|
||||
Pkg: "https",
|
||||
Index: "https",
|
||||
}
|
||||
19
vendor/github.com/dave/wasmgo/config/hosts.local.go
generated
vendored
Normal file
19
vendor/github.com/dave/wasmgo/config/hosts.local.go
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// +build local
|
||||
|
||||
package config
|
||||
|
||||
const (
|
||||
LOCAL = true
|
||||
)
|
||||
|
||||
var Host = map[string]string{
|
||||
Wasm: "localhost:8083",
|
||||
Pkg: "localhost:8092",
|
||||
Index: "localhost:8093",
|
||||
}
|
||||
|
||||
var Protocol = map[string]string{
|
||||
Wasm: "http",
|
||||
Pkg: "http",
|
||||
Index: "http",
|
||||
}
|
||||
19
vendor/github.com/dave/wasmgo/config/hosts.prod.go
generated
vendored
Normal file
19
vendor/github.com/dave/wasmgo/config/hosts.prod.go
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// +build !dev,!local
|
||||
|
||||
package config
|
||||
|
||||
const (
|
||||
LOCAL = false
|
||||
)
|
||||
|
||||
var Host = map[string]string{
|
||||
Wasm: "wasm.jsgo.io",
|
||||
Pkg: "pkg.jsgo.io",
|
||||
Index: "jsgo.io",
|
||||
}
|
||||
|
||||
var Protocol = map[string]string{
|
||||
Wasm: "https",
|
||||
Pkg: "https",
|
||||
Index: "https",
|
||||
}
|
||||
7
vendor/github.com/dave/wasmgo/main.go
generated
vendored
Normal file
7
vendor/github.com/dave/wasmgo/main.go
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
package main
|
||||
|
||||
import "github.com/dave/wasmgo/cmd"
|
||||
|
||||
func main() {
|
||||
cmd.Execute()
|
||||
}
|
||||
Reference in New Issue
Block a user