golang-china / godocu

Godocu extracts and generates documentation for Go programs.
11 stars 1 forks source link

如何迁移当前的翻译文档跟进当前 go 目录结构 #3

Closed achun closed 8 years ago

achun commented 8 years ago

对比结果显示, 有些是目录移动了, 有些因为当前翻译引入了 golang.org 的包

ps: 调整了输出格式

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

source target import_path
  path  none  cmd/api
  path  none  cmd/asm
  path  none  cmd/asm/internal
  path  none  cmd/asm/internal/arch
  path  none  cmd/asm/internal/asm
  path  none  cmd/asm/internal/flags
  path  none  cmd/asm/internal/lex
  path  none  cmd/compile
  path  none  cmd/compile/internal
  path  none  cmd/compile/internal/amd64
  path  none  cmd/compile/internal/arm
  path  none  cmd/compile/internal/arm64
  path  none  cmd/compile/internal/big
  path  none  cmd/compile/internal/gc
  path  none  cmd/compile/internal/gc/builtin
  path  none  cmd/compile/internal/mips64
  path  none  cmd/compile/internal/ppc64
  path  none  cmd/compile/internal/x86
  path  none  cmd/doc
  path  none  cmd/internal/gcprog
  path  none  cmd/internal/obj
  path  none  cmd/internal/obj/arm
  path  none  cmd/internal/obj/arm64
  path  none  cmd/internal/obj/mips
  path  none  cmd/internal/obj/ppc64
  path  none  cmd/internal/obj/x86
  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/link/internal
  path  none  cmd/link/internal/amd64
  path  none  cmd/link/internal/arm
  path  none  cmd/link/internal/arm64
  path  none  cmd/link/internal/ld
  path  none  cmd/link/internal/mips64
  path  none  cmd/link/internal/ppc64
  path  none  cmd/link/internal/x86
  path  none  cmd/trace
  path  none  cmd/vet/internal
  path  none  cmd/vet/internal/whitelist
  path  none  go/constant
  path  none  go/importer
  path  none  go/internal
  path  none  go/internal/gccgoimporter
  path  none  go/internal/gcimporter
  path  none  go/types
  path  none  image/internal
  path  none  image/internal/imageutil
  path  none  internal
  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
  path  none  internal/race
  path  none  internal/singleflight
  path  none  internal/syscall
  path  none  internal/syscall/unix
  path  none  internal/syscall/windows
  path  none  internal/syscall/windows/registry
  path  none  internal/syscall/windows/sysdll
  path  none  internal/testenv
  path  none  internal/trace
  path  none  mime/quotedprintable
  path  none  net/internal
  path  none  net/internal/socktest
  path  none  runtime/internal
  path  none  runtime/internal/atomic
  path  none  runtime/internal/sys
  path  none  runtime/msan
  path  none  runtime/trace
  none  path  cmd/godoc
  none  path  github.com
  none  path  golang.org
  none  path  golang.org/x
  none  path  golang.org/x/image
  none  path  golang.org/x/image/bmp
  none  path  golang.org/x/image/draw
  none  path  golang.org/x/image/math
  none  path  golang.org/x/image/math/f32
  none  path  golang.org/x/image/math/f64
  none  path  golang.org/x/image/riff
  none  path  golang.org/x/image/tiff
  none  path  golang.org/x/image/tiff/lzw
  none  path  golang.org/x/image/vp8
  none  path  golang.org/x/image/vp8l
  none  path  golang.org/x/image/webp
  none  path  golang.org/x/image/webp/nycbcra
  none  path  golang.org/x/tools
  none  path  golang.org/x/tools/go
  none  path  golang.org/x/tools/go/ast
  none  path  golang.org/x/tools/go/ast/astutil
  none  path  mime/internal
  none  path  mime/internal/quotedprintable
achun commented 8 years ago

依照官方包目录结构生成翻译目录结构, 外部包移动到 src 之外