alice52 / go-tutorial Goto Github PK
View Code? Open in Web Editor NEWThis repository records golang learning process
License: MIT License
This repository records golang learning process
License: MIT License
下载安装文件: https://studygolang.com/dl
wget https://storage.googleapis.com/golang/go1.13.4.linux-amd64.tar.gz
创建 /opt/go/sdk
目录
mkdir -p /opt/go/sdk
tar -zxvf go.*.gz ./
设置相关环境
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
创建相关环境变量及目录
mkdir -p /opt/go/repo
mkdir -p /opt/go/repo/workspace
export GOPATH=/opt/go/repo # this dic will store third-party dependency
export GOROOT=/opt/go/sdk # this do source code[sdk]
export PATH=$GOPATH/bin:$PATH:$GOROOT/bin # expoer path
|-- go
| |-- repo
| | |-- bin
| | |-- pkg
| | `-- workspace // 项目区域
| `-- sdk
dpkg --print-architecture
|| arch
: look up arch/opt/go/sdk/$VERSION
下.zshrc
and /etc/profile
完全删除: 重新获取适用机会
# delete idea folder
delete ~/.java/.userPrefsJetBrains/goland*
delete ~/.config/JetBrains/goland*
delete ~/.cache/JetBrains/goland*
导入配置
配置 goland
install below plugins
plugin | func |
---|---|
Go Outliner | -- |
Go Doc | -- |
Go | -- |
Remote - SSH | -- |
Remote - SSH: Editing | -- |
配置 GOPROXY="https://goproxy.cn,direct"
之后安装 Go Tools
Go: Install/Update Tools
可以使用云端开发机器
~/.ssh/id_rsa.pub
的值放入服务器的 ~/.ssh/authorized_keys
下This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
go.opentelemetry.io/otel
, go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp
, go.opentelemetry.io/otel/exporters/stdout/stdoutmetric
, go.opentelemetry.io/otel/exporters/stdout/stdouttrace
, go.opentelemetry.io/otel/metric
, go.opentelemetry.io/otel/sdk
, go.opentelemetry.io/otel/sdk/metric
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.github/workflows/build-awesome.yml
actions/checkout v4
WillAbides/setup-go-faster v1.14.0
.github/workflows/build-oss-proxy.yml
actions/checkout v4
WillAbides/setup-go-faster v1.14.0
actions/upload-artifact v4
actions/upload-artifact v4
.github/workflows/build-worktest.yml
actions/checkout v4
WillAbides/setup-go-faster v1.14.0
actions/upload-artifact v4
.github/workflows/commit-msg-checker.yml
ahmadnassri/action-commit-lint v2.1.17
ubuntu 22.04
tutorials/github.com/alice52/awesome/common/go.mod
go 1.19
tutorials/github.com/alice52/awesome/pkg/go.mod
go 1.19
github.com/go-playground/locales v0.14.1
github.com/go-playground/universal-translator v0.18.1
github.com/go-playground/validator/v10 v10.16.0
github.com/gookit/event v1.1.1
github.com/robfig/cron/v3 v3.0.1
github.com/sourcegraph/conc v0.3.0
github.com/uptrace/opentelemetry-go-extra/otelzap v0.2.4
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0
go.opentelemetry.io/otel v1.24.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.24.0
go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.24.0
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.24.0
go.opentelemetry.io/otel/metric v1.24.0
go.opentelemetry.io/otel/sdk v1.24.0
go.opentelemetry.io/otel/sdk/metric v1.24.0
go.uber.org/zap v1.27.0
gopkg.in/natefinch/lumberjack.v2 v2.2.1
tutorials/github.com/alice52/awesome/pkg/gorm/go.mod
go 1.20
gorm.io/driver/mysql v1.5.2
gorm.io/gen v0.3.25
gorm.io/gorm v1.25.8
tutorials/github.com/alice52/awesome/syntax/v2/go.mod
go 1.19
github.com/stretchr/testify v1.8.4
golang.org/x/sync v0.5.0
tutorials/github.com/alice52/awesome/web/gin/go.mod
go 1.19
github.com/gin-gonic/gin v1.9.1
golang.org/x/sync v0.5.0
tutorials/github.com/alice52/awesome/web/gin_practice/go.mod
go 1.19
github.com/gin-gonic/gin v1.9.1
github.com/swaggo/files v1.0.1
github.com/swaggo/gin-swagger v1.6.0
github.com/swaggo/swag v1.16.2
tutorials/github.com/alice52/awesome/web/go-zero/go.mod
go 1.20
github.com/zeromicro/go-zero v1.6.1
tutorials/github.com/alice52/proxy/common/go.mod
go 1.20
tutorials/github.com/alice52/proxy/oss/go.mod
go 1.20
github.com/aliyun/aliyun-oss-go-sdk v3.0.1+incompatible
github.com/aliyun/fc-runtime-go-sdk v0.2.7
tutorials/github.com/alice52/proxy/sts/go.mod
go 1.20
tutorials/github.com/alice52/work_test/module_a/go.mod
go 1.20
tutorials/github.com/alice52/work_test/module_b/go.mod
go 1.20
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.