https://github.com/xpdojo/go
Go is a statically typed, compiled high-level programming language designed at Google by Robert Griesemer, Rob Pike, and Ken Thompson.
https://github.com/xpdojo/go
go golang
Last synced: 10 months ago
JSON representation
Go is a statically typed, compiled high-level programming language designed at Google by Robert Griesemer, Rob Pike, and Ken Thompson.
- Host: GitHub
- URL: https://github.com/xpdojo/go
- Owner: xpdojo
- License: apache-2.0
- Created: 2021-03-24T01:32:10.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-07-17T15:40:47.000Z (almost 4 years ago)
- Last Synced: 2025-02-06T15:53:28.060Z (over 1 year ago)
- Topics: go, golang
- Language: Go
- Homepage: https://go.dev/
- Size: 282 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go
## Install Go
- [Download](https://golang.org/dl/)
```shell
> cd /tmp
> curl -LO https://go.dev/dl/${archive}
> sudo tar -zxf ${archive} -C /usr/local
```
```shell
> vi ~/.bashrc
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
PATH=$PATH:$GOPATH/bin:$GOROOT/bin
> source ~/.bashrc
```
```shell
> go version
go version go1.18 linux/amd64
```
```shell
> go env
GOPATH="/home/markruler/go" # ${HOME}/go
GOROOT="/usr/local/go"
```
## on Windows
### SDK

### System environment variables

`GOROOT`, `GOPATH`

```shell
GOPATH = ${HOME}\go
GOROOT = C:\Program Files\Go
Path += %GOROOT%\bin
go env
# set GOENV=C:\Users\imcxs\AppData\Roaming\go\env
# set GOCACHE=C:\Users\imcxs\AppData\Local\go-build
# set GOMODCACHE=C:\Users\imcxs\go\pkg\mod
# set GOPATH=C:\Users\imcxs\go
# set GOROOT=C:\Program Files\Go
```
## GoLand


*`${HOME}/go`*
## 실행
```shell
> go run main.go
```