Git Product home page Git Product 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 Issues

与 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

本地 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

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.