Giter VIP home page Giter VIP logo

go-zh / go.old Goto Github PK

View Code? Open in Web Editor NEW
371.0 63.0 109.0 86.95 MB

[已过期]Go 编程语言中文翻译

Home Page: https://go-zh.org/

License: BSD 3-Clause "New" or "Revised" License

Shell 0.19% Go 88.07% C 0.54% C++ 0.01% Assembly 5.72% HTML 5.29% JavaScript 0.01% Protocol Buffer 0.01% Makefile 0.01% Logos 0.01% Awk 0.01% Perl 0.10% CSS 0.01% Python 0.04% Batchfile 0.02% Yacc 0.01% Fortran 0.01%

go.old's Introduction

Go 编程语言

Go 是一门开源的编程语言,它能让你轻松地构建简单、可靠而高效的软件。

Gopher image

关于 Go 的安装和使用,请访问 https://golang.org/ ,或在你的浏览器中查看 doc/install-source.html

我们的 Git 代码库为 https://go.googlesource.com/go (该代码库还有个镜像为 https://github.com/golang/go )。

若发现问题请在此报告:https://golang.org/issue/new

Go 是数百名贡献者努力工作的结晶。我们感谢你们的帮助!

要做出贡献,请先阅读贡献指南: https://golang.org/doc/contribute.html

除特别注明外,Go 源码文件采用BSD风格授权协议分发。协议内容见 LICENSE 文件。


二进制分发注记

若你刚解包完 Go 的二进制分发包,那么还需要设置 $GOROOT 环境变量为该 go 目录(即包含本文件的目录)的完整路径。若你已将其解包到 /usr/local/go,或通过运行 all.bash 从源码重新构建了 Go(见 doc/install-source.html ),则可忽略此变量。此外,你还需要将 Go 的二进制文件目录 $GOROOT/bin 加入到你的 $PATH 环境变量中。

例如,若你将该 tar 文件提取到了 $HOME/go 中,那么还需在你的 .profile 中添加以下文本:

export GOROOT=$HOME/go
export PATH=$PATH:$GOROOT/bin

更多详情见 https://golang.org/doc/installdoc/install.html

go.old's People

Contributors

0intro avatar aclements avatar adg avatar adonovan avatar agl avatar alexbrainman avatar ality avatar bradfitz avatar cixtor avatar crawshaw avatar davecheney avatar dsymonds avatar dvyukov avatar griesemer avatar ianlancetaylor avatar josharian avatar ken avatar mdempsky avatar minux avatar mpvl avatar mwhudson avatar niemeyer avatar nigeltao avatar olingcat avatar randall77 avatar remyoudompheng avatar robpike avatar rogpeppe avatar rsc avatar tzneal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

go.old's Issues

本地 repo 设置 Gerrit 的方法(草稿)

注:这还是草稿,先不要操作!

我们的翻译审校迁移到了 Gerrit,因此贡献方式也有所改变。由于我们的Go-zh不会向官方提交代码,而且Gerrit通过 cherry pick 的方式向主代码库提交,因此翻译直接在 master 上进行,这样也方便维护和同步。

首先,请译者进行如下设置:

  1. 在自己 Github 上的代码库 Settings 里将 Default branch 改为 master
  2. 进入源码库(假设状态为clear,如果不是请先用 git stash 暂存一下),执行如下命令:
git push origin zh-master:master
git co master
git pull
git branch -d zh-master
git push origin :zh-master # 注意 origin 后面的空格。

接着,请在我们的 Gerrit 上注册自己的账号:

  1. 访问 review.go-zh.org ,按提示进行 Github 的 OAuth 认证。
  2. 完成后回到Gerrit,点右上角的箭头——Settings——点左边的 Contact Information——填写 Full Name——点Save Changes(这里可以先记下你的Username,稍后会用到)
  3. 点 Register New Email——填写你的邮件地址——点Register,之后登陆你的邮箱查收发来的认证邮件,点击其中认证链接完成注册。
  4. 点Settings界面左侧的 SSH Public Keys,填写你曾经设置在Github上的 pubkey。

最后,在你的本地代码库中为新的Gerrit审校进行设置(假设你已经安装了Go):

  1. 安装我们的官方 review 工具的修改版(它与官方的工具兼容,因此如果你已经安装过官方的 git-codereveiw,可以放心覆盖。):
    go get -u github.com/Go-zh/review/git-codereview
  2. 进入本地代码库,设置 pushurl(以 go 源码库为例):
    git config remote.origin.pushurl ssh://<你的Username>@review.go-zh.org:29418/go
  3. 接着添加我们自己的 hooks:
    git codereview hooks
  4. 同步远程的主代码库(从 https://github/Go-zh/go 上):
    git codereview sync

与 go 1.6.2 目录结构对比结果

go 1.6.2 有, 当前没有的

其中 unvendor 有点纠结

ps: 调整了输出格式

source: /usr/local/Cellar/go/1.6.2/libexec/src/
target: /Users/achun/Workspace/gowork/go/src

source target import_path
  path  none  cmd/internal/unvendor
  path  none  cmd/internal/unvendor/golang.org
  path  none  cmd/internal/unvendor/golang.org/x
  path  none  cmd/internal/unvendor/golang.org/x/arch
  path  none  cmd/internal/unvendor/golang.org/x/arch/arm
  path  none  cmd/internal/unvendor/golang.org/x/arch/arm/armasm
  path  none  cmd/internal/unvendor/golang.org/x/arch/x86
  path  none  cmd/internal/unvendor/golang.org/x/arch/x86/x86asm
  path  none  cmd/pprof/internal
  path  none  cmd/pprof/internal/commands
  path  none  cmd/pprof/internal/driver
  path  none  cmd/pprof/internal/fetch
  path  none  cmd/pprof/internal/plugin
  path  none  cmd/pprof/internal/profile
  path  none  cmd/pprof/internal/report
  path  none  cmd/pprof/internal/svg
  path  none  cmd/pprof/internal/symbolizer
  path  none  cmd/pprof/internal/symbolz
  path  none  cmd/pprof/internal/tempfile
  path  none  internal/golang.org
  path  none  internal/golang.org/x
  path  none  internal/golang.org/x/net
  path  none  internal/golang.org/x/net/http2
  path  none  internal/golang.org/x/net/http2/hpack
  none  path  cmd/compile/internal/s390x
  none  path  cmd/compile/internal/ssa
  none  path  cmd/compile/internal/ssa/gen
  none  path  cmd/compile/internal/test
  none  path  cmd/internal/bio
  none  path  cmd/internal/obj/s390x
  none  path  cmd/internal/pprof
  none  path  cmd/internal/pprof/commands
  none  path  cmd/internal/pprof/driver
  none  path  cmd/internal/pprof/fetch
  none  path  cmd/internal/pprof/plugin
  none  path  cmd/internal/pprof/profile
  none  path  cmd/internal/pprof/report
  none  path  cmd/internal/pprof/svg
  none  path  cmd/internal/pprof/symbolizer
  none  path  cmd/internal/pprof/symbolz
  none  path  cmd/internal/pprof/tempfile
  none  path  cmd/internal/sys
  none  path  cmd/link/internal/s390x
  none  path  context
  none  path  internal/nettrace
  none  path  net/http/httptrace

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.