ๆ–‡็ซ ็›ฎๅฝ•

ไธ€ใ€๐Ÿ” ไธ‹่ฝฝๅนถๅฎ‰่ฃ…Go็Žฏๅขƒ
go1.17.4.windows-amd64.msi
go1.17.4.windows-amd64.msi
ๅ‚ป็“œๅผ

๐Ÿ’–๐Ÿ’–๐Ÿ’–๐Ÿ’–๐Ÿ’–๐Ÿ’–๐Ÿ’–๐Ÿ’–๐Ÿ’–๐Ÿ’–๐Ÿ’–๐Ÿ’–๐Ÿ’–๐Ÿ’–๐Ÿ’–

๐Ÿ’š๐Ÿ’š๐Ÿ’š๐Ÿ’š๐Ÿ’š๐Ÿ’š๐Ÿ’š๐Ÿ’š๐Ÿ’š๐Ÿ’š๐Ÿ’š๐Ÿ’š๐Ÿ’š๐Ÿ’š๐Ÿ’š๐Ÿ’š

๐Ÿ’›๐Ÿ’›๐Ÿ’›๐Ÿ’›๐Ÿ’›๐Ÿ’›๐Ÿ’›๐Ÿ’›๐Ÿ’›๐Ÿ’›๐Ÿ’›๐Ÿ’›๐Ÿ’›๐Ÿ’›๐Ÿ’›๐Ÿ’›

๐Ÿ’™๐Ÿ’™๐Ÿ’™๐Ÿ’™๐Ÿ’™๐Ÿ’™๐Ÿ’™๐Ÿ’™๐Ÿ’™๐Ÿ’™๐Ÿ’™๐Ÿ’™๐Ÿ’™๐Ÿ’™๐Ÿ’™๐Ÿ’™

๐Ÿ’œ๐Ÿ’œ๐Ÿ’œ๐Ÿ’œ๐Ÿ’œ๐Ÿ’œ๐Ÿ’œ๐Ÿ’œ๐Ÿ’œ๐Ÿ’œ๐Ÿ’œ๐Ÿ’œ๐Ÿ’œ๐Ÿ’œ๐Ÿ’œ๐Ÿ’œ

go
Microsoft Windows [็‰ˆๆœฌ 10.0.19042.1237]
(c) Microsoft Corporationใ€‚ไฟ็•™ๆ‰€ๆœ‰ๆƒๅˆฉใ€‚

C:\Users\xyb>go
Go is a tool for managing Go source code.

Usage:

        go <command> [arguments]

The commands are:

        bug         start a bug report
        build       compile packages and dependencies
        clean       remove object files and cached files
        doc         show documentation for package or symbol
        env         print Go environment information
        fix         update packages to use new APIs
        fmt         gofmt (reformat) package sources
        generate    generate Go files by processing source
        get         add dependencies to current module and install them
        install     compile and install packages and dependencies
        list        list packages or modules
        mod         module maintenance
        run         compile and run Go program
        test        test packages
        tool        run specified go tool
        version     print Go version
        vet         report likely mistakes in packages

Use "go help <command>" for more information about a command.

Additional help topics:

        buildconstraint build constraints
        buildmode       build modes
        c               calling between Go and C
        cache           build and test caching
        environment     environment variables
        filetype        file types
        go.mod          the go.mod file
        gopath          GOPATH environment variable
        gopath-get      legacy GOPATH go get
        goproxy         module proxy protocol
        importpath      import path syntax
        modules         modules, module versions, and more
        module-get      module-aware go get
        module-auth     module authentication using go.sum
        packages        package lists and patterns
        private         configuration for downloading non-public code
        testflag        testing flags
        testfunc        testing functions
        vcs             controlling version control with GOVCS

Use "go help <topic>" for more information about that topic.


C:\Users\xyb>
go version
C:\Users\xyb\Desktop\Go+\gop>go version
go version go1.17.4 windows/amd64
ไบŒใ€๐Ÿ•š Windows็ณป็ปŸไธŠๅฎ‰่ฃ…Gitไธ‰ใ€๐Ÿ’ฆๆ‹ท่ด Git ไป“ๅบ“ๅˆฐๆœฌๅœฐ

๐ŸŽจ ๆ‰“ๅผ€CMDๅ‘ฝไปคๆ็คบ็ฌฆ็ช—ๅฃ๏ผŒ่พ“ๅ…ฅไธ‹ๅˆ—ๅ‘ฝไปค๏ผŒไธ‹่ฝฝๆบ็ ่‡ณๆœฌๅœฐใ€‚ ๐ŸŽ‰

git clone https://github.com/goplus/gop.git
Microsoft Windows [็‰ˆๆœฌ 10.0.19042.1237]
(c) Microsoft Corporationใ€‚ไฟ็•™ๆ‰€ๆœ‰ๆƒๅˆฉใ€‚

C:\Users\xyb\Desktop\Go+>
C:\Users\xyb\Desktop\Go+>git clone https://github.com/goplus/gop.git
Cloning into 'gop'...
remote: Enumerating objects: 16681, done.
remote: Counting objects: 100% (4963/4963), done.
remote: Compressing objects: 100% (1641/1641), done.
remote: Total 16681 (delta 3182), reused 4671 (delta 2987), pack-reused 11718Receiving objects: 100% (16681/16681), 20.1Receiving objects: 100% (16681/16681), 20.65 MiB | 2.33 MiB/s, done.

Resolving deltas: 100% (9704/9704), done.

C:\Users\xyb\Desktop\Go+>
ๅ››ใ€๐Ÿ’ขๆ‰ง่กŒall.bat่„šๆœฌๅฎ‰่ฃ…Go+

โŒโ—่‹ฅๅ‡บ็Žฐไธ‹ๅˆ—ๆŠฅ้”™ไฟกๆฏ๏ผŒๅฆ‚ๅ›พๆ‰€็คบใ€‚

Microsoft Windows [็‰ˆๆœฌ 10.0.19042.1237]
(c) Microsoft Corporationใ€‚ไฟ็•™ๆ‰€ๆœ‰ๆƒๅˆฉใ€‚

C:\Users\xyb\Desktop\Go+\gop\cmd>cd ..

C:\Users\xyb\Desktop\Go+\gop>.\all.bat

C:\Users\xyb\Desktop\Go+\gop>go run cmd/make.go --install --autoproxy
go: github.com/goplus/gox@v1.8.0: Get "https://proxy.golang.org/github.com/goplus/gox/@v/v1.8.0.mod": dial tcp 172.217.160.81:443: connectex: No connection could be made because the target machine actively refused it.
go: github.com/goplus/gox@v1.8.0: Get "https://proxy.golang.org/github.com/goplus/gox/@v/v1.8.0.mod": dial tcp 172.217.160.81:443: connectex: No connection could be made because the target machine actively refused it.

C:\Users\xyb\Desktop\Go+\gop>
.\all.bat
C:\Users\xyb\Desktop\Go+\gop>go env -w GOPROXY=https://goproxy.cn,direct
C:\Users\xyb\Desktop\Go+\gop>.\all.bat

C:\Users\xyb\Desktop\Go+\gop>go run cmd/make.go --install --autoproxy
Installing Go+ tools...
go: downloading github.com/qiniu/x v1.11.5
go: downloading github.com/goplus/gox v1.8.0
go: downloading golang.org/x/mod v0.5.1
go: downloading golang.org/x/tools v0.1.7
go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
go: downloading golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e
golang.org/x/xerrors/internal
github.com/goplus/gop/token
github.com/goplus/gop/env
github.com/qiniu/x/log
github.com/goplus/gop/scanner
github.com/goplus/gop/x/mod/internal/lazyregexp
github.com/goplus/gop/ast
golang.org/x/mod/internal/lazyregexp
golang.org/x/mod/semver
github.com/goplus/gop/parser
golang.org/x/xerrors
golang.org/x/mod/module
github.com/goplus/gox/internal
github.com/goplus/gop/x/mod/modfile
github.com/goplus/gox/internal/go/printer
golang.org/x/mod/modfile
github.com/goplus/gox/internal/go/format
golang.org/x/sys/execabs
golang.org/x/tools/internal/typeparams
golang.org/x/tools/internal/event/label
golang.org/x/tools/go/internal/gcimporter
golang.org/x/tools/internal/event/keys
golang.org/x/tools/internal/event/core
golang.org/x/tools/internal/event
golang.org/x/tools/internal/gocommand
golang.org/x/tools/go/gcexportdata
golang.org/x/tools/internal/typesinternal
golang.org/x/tools/go/internal/packagesdriver
golang.org/x/tools/internal/packagesinternal
golang.org/x/tools/go/ast/astutil
golang.org/x/tools/go/packages
golang.org/x/tools/go/types/typeutil
github.com/goplus/gop/cmd/internal/search
github.com/goplus/gox
github.com/goplus/gop/x/mod/modfetch
github.com/goplus/gop/printer
github.com/goplus/gop/format
github.com/goplus/gop/x/format
github.com/goplus/gop/cmd/gopfmt
github.com/goplus/gop/cl
github.com/goplus/gop/cmd/goptestgo
github.com/goplus/gop/cmd/gengo
github.com/goplus/gop/x/gopmod
github.com/goplus/gop/cmd/internal/base
github.com/goplus/gop/cmd/internal/modload
github.com/goplus/gop/cmd/internal/clean
github.com/goplus/gop/cmd/internal/env
github.com/goplus/gop/cmd/internal/build
github.com/goplus/gop/cmd/internal/gengo
github.com/goplus/gop/cmd/internal/gopfmt
github.com/goplus/gop/cmd/internal/help
github.com/goplus/gop/cmd/internal/install
github.com/goplus/gop/cmd/internal/mod
github.com/goplus/gop/cmd/internal/run
github.com/goplus/gop/cmd/internal/test
github.com/goplus/gop/cmd/internal/version
github.com/goplus/gop/cmd/goprun
github.com/goplus/gop/cmd/gop


Go+ tools installed successfully!

NEXT STEP:

We just installed Go+ into the directory:  C:\Users\xyb\Desktop\Go+\gop\bin

To setup a better Go+ development environment,
we recommend you add the above install directory into your PATH environment variable.


C:\Users\xyb\Desktop\Go+\gop>cd C:\Users\xyb\Desktop\Go+\gop\bin

C:\Users\xyb\Desktop\Go+\gop\bin>dir
 ้ฉฑๅŠจๅ™จ C ไธญ็š„ๅทๆฒกๆœ‰ๆ ‡็ญพใ€‚
 ๅท็š„ๅบๅˆ—ๅทๆ˜ฏ A242-652F

 C:\Users\xyb\Desktop\Go+\gop\bin ็š„็›ฎๅฝ•

2021/12/06  00:28    <DIR>          .
2021/12/06  00:28    <DIR>          ..
2021/12/06  00:28         9,879,040 gop.exe
2021/12/06  00:28         3,027,968 gopfmt.exe
2021/12/06  00:28         8,086,016 goprun.exe
2021/12/06  00:28         2,599,936 goptestgo.exe
               4 ไธชๆ–‡ไปถ     23,592,960 ๅญ—่Š‚
               2 ไธช็›ฎๅฝ• 28,031,397,888 ๅฏ็”จๅญ—่Š‚

C:\Users\xyb\Desktop\Go+\gop\bin>gop.exe version
gop v1.0.32-61-g15116b6f windows/amd64

C:\Users\xyb\Desktop\Go+\gop\bin>

ๅœจWindows็ณป็ปŸไธ‹๏ผŒๅฎ‰่ฃ…Go+็ผ–็จ‹็ŽฏๅขƒๆˆๅŠŸใ€‚ โœ…

gop
C:\Users\xyb\Desktop\Go+\gop\bin>gop help
Gop is a tool for managing Go+ source code.

Usage:

        gop <command> [arguments]

The commands are:

        run         Run a Go+ program
        go          Convert Go+ packages into Go packages
        fmt         Format Go+ packages
        mod         module maintenance
        install     Build Go+ files and install target to GOBIN
        build       Build Go+ files
        clean       Clean all Go+ auto generated files
        env         prints Go+ environment information.
        test        Test Go+ packages
        version     Version prints the build information for Gop executables

Use "gop help <command>" for more information about a command.


C:\Users\xyb\Desktop\Go+\gop\bin>
ไบ”ใ€โœ…้ชŒ่ฏGo+็Žฏๅขƒๆ˜ฏๅฆๅฎ‰่ฃ…ๆˆๅŠŸ

ๅœจbin็›ฎๅฝ•ไธ‹๏ผŒ็ผ–ๅ†™hello.go็จ‹ๅบไปฃ็  ๐ŸŽจ

package main

import "fmt"

func main() {
    fmt.Println([]float64{1, 2, 3.4})
}
gop run hello.go