atotto / go-tour-jp Goto Github PK
View Code? Open in Web Editor NEWThis project forked from golang/tour
A Tour of Go 日本語版(PRお気軽にどうぞ)
Home Page: https://go-tour-jp.appspot.com/
License: BSD 3-Clause "New" or "Revised" License
This project forked from golang/tour
A Tour of Go 日本語版(PRお気軽にどうぞ)
Home Page: https://go-tour-jp.appspot.com/
License: BSD 3-Clause "New" or "Revised" License
Context: https://go-tour-jp.appspot.com/list
Change the title above to describe your issue and add your feedback here, including code if necessary
Context: https://go-tour-jp.appspot.com/welcome/1
Change the title above to describe your issue and add your feedback here, including code if necessary
Context: https://go-tour-jp.appspot.com/methods/22
Change the title above to describe your issue and add your feedback here, including code if necessary
Context: https://go-tour-jp.appspot.com/welcome/1
Change the title above to describe your issue and add your feedback here, including code if necessary
Context: https://go-tour-jp.appspot.com/moretypes/25
Change the title above to describe your issue and add your feedback here, including code if necessary
Context: https://go-tour-jp.appspot.com/flowcontrol/8
Change the title above to describe your issue and add your feedback here, including code if necessary
Context: https://go-tour-jp.appspot.com/methods/23
Change the title above to describe your issue and add your feedback here, including code if necessary
Context: https://go-tour-jp.appspot.com/basics/13
10行目の以下のコード
var f float64 = math.Sqrt((x*x + y*y))
↓↓ こちらが正しいみたいです
var f float64 = math.Sqrt(float64(x*x + y*y))
Context: https://go-tour-jp.appspot.com/moretypes/6
Browser: Chrome (v84.0.4147.89)
Detected date: 2020/08/25 20:08 JST
// in playground
aapackage main
Context: https://go-tour-jp.appspot.com/welcome/1
Change the title above to describe your issue and add your feedback here, including code if necessary
Exercise: Equivalent Binary Trees
の翻訳の一部が適切ではないかと思い、Issue を立てさせていただきました。
葉に同じ順序の値を保持する、異なる多くの二分木( binary tree )があります。
2つの二分木が同じ順序を保持しているかどうかを確認する機能は、多くの言語においてかなり複雑です。
sequence は、この文脈では 1, 1, 2, 3, 5, 8, 13
を表しており、「列」または「数列」と翻訳するのが適切かと思います。
葉に同じ順序の値を保持する、異なる多くの二分木( binary tree )があります。
列 1, 1, 2, 3, 5, 8, 13
を保持しているのは、葉 でなく、二分木全体です。
原文
There can be many different binary trees with the same sequence of values stored in it. For example, here are two binary trees storing the sequence 1, 1, 2, 3, 5, 8, 13.
A function to check whether two binary trees store the same sequence is quite complex in most languages.
同じ数列を保持するような、形の異なる二分木は多く存在し得ます。例えば、ここに数列 1, 1, 2, 3, 5, 8, 13 を保持する 2 つの二分木があります。
2 つの二分木が同じ数列を保持しているかどうかを確認する機能は、多くの言語においてかなり複雑です。
原文:https://tour.golang.org/concurrency/7
日本語版:https://go-tour-jp.appspot.com/concurrency/7
Context: https://go-tour-jp.appspot.com/concurrency/1
Change the title above to describe your issue and add your feedback here, including code if necessary
Context: https://go-tour-jp.appspot.com/flowcontrol/7
Change the title above to describe your issue and add your feedback here, including code if necessary
Slice length and capacity中の訳について改善提案です。
"You can extend a slice's length by re-slicing it, provided it has sufficient capacity. "は以下のように訳されています。
「十分な容量を持って提供されているスライスを再スライスすることによって、スライスの長さを伸ばすことができます。」
providedは「もし〜ならば、〜という条件で」という意味なので、「もし容量が十分ならスライスの長さを拡張できます」と直すと良いと思います。
https://ejje.weblio.jp/content/provided
今の訳でも理解できますが、providedの意味を取り違えているのと、意味が取りづらく感じました。
翻訳:https://go-tour-jp.appspot.com/moretypes/11
原文:https://go.dev/tour/moretypes/11
「Go 1.9 is no longer available.」と出てますので、
GoogleAppEngine 2nd Generation 対応が行われてない為かと思います。
対応等の予定はございますでしょうか?
Context: https://go-tour-jp.appspot.com/methods/21
このインタフェースの 多くの実装 があります。
Context: https://go-tour-jp.appspot.com/flowcontrol/1
Change the title above to describe your issue and add your feedback here, including code if necessary
Context: https://go-tour-jp.appspot.com/basics/3
Change the title above to describe your issue and add your feedback here, including code if necessary
Context: https://go-tour-jp.appspot.com/basics/2
訳注: ここの factored の意味は、「要素化、グループ化、整理済み」ということです。良い日本語募集中。
「包括」というのはいかがでしょうか。
「包括インポート」といえば、複数のものを取りまとめて取得することだなと分かりそうです。
Context: https://go-tour-jp.appspot.com/list
Change the title above to describe your issue and add your feedback here, including code if necessary
Context: https://go-tour-jp.appspot.com/flowcontrol/8
Change the title above to describe your issue and add your feedback here, including code if necessary
Context: https://go-tour-jp.appspot.com/moretypes/1
変数 T のポインタは、 *T 型で、ゼロ値は nil です。
とありますが、
「 T 型のポインタは、 *T 型で、ゼロ値は nil です。 」
が正しいように思えました
Context: https://go-tour-jp.appspot.com/methods/22
Change the title above to describe your issue and add your feedback here, including code if necessary
Context: https://go-tour-jp.appspot.com/basics/1
Change the title above to describe your issue and add your feedback here, including code if necessary
basic/2
のページに紹介される「factored import statement」の和訳に関していい日本語を探しているように告げられています。「くくり出しインポート文」はいかがでしょうか。
ここ「factored」の英単語は「factor out a common variable」の数学的意味として比喩使用されていると考えられるでしょう。だとすれば、同文の和訳「共通変数を括り出す」を借りて「括り出す」が「factored」に相当することから、カタカナ書き換えに比べてはやや意味の伝わりやすい訳だと思います。
ご参考までよろしくお願いします。
Context: https://go-tour-jp.appspot.com/methods/25
Change the title above to describe your issue and add your feedback here, including code if necessary
Context: https://go-tour-jp.appspot.com/welcome/3
ローカルで Go Tour を実行するためには、はじめに、 Goのダウンロードとインストール し、コマンドラインで以下のように実行します:
go tool tour
上記のコマンドの実行に問題がある場合は手動でこのツアーをインストールして実行できます:
go get github.com/atotto/go-tour-jp/gotour gotour
I tried go get
command but it fails. I'd like to try Go Tour on my computer in Japanese so I'm happy if it successes.
$ go get github.com/atotto/go-tour-jp/gotour
go get: github.com/atotto/[email protected] requires
golang.org/x/[email protected]: invalid version: unknown revision 000000000000
Context: https://go-tour-jp.appspot.com/welcome/1
Change the title above to describe your issue and add your feedback here, including code if necessary
Context: https://go-tour-jp.appspot.com/methods/6
メソッドがポインタレシーバである場合、呼び出し時に、変数、または、ポインタのいずれかのレシーバとして取ることができます
while methods with pointer receivers take either a value or a pointer as the receiver when they are called:
メソッドがポインタレシーバである場合、呼び出し時に、値、または、ポインタのいずれかのレシーバとして取ることができます
v は変数であり、ポインタではありません。
even though v is a value and not a pointer,
v は値であり、ポインタではありません。
Context: https://go-tour-jp.appspot.com/welcome/1
Change the title above to describe your issue and add your feedback here, including code if necessary
Context: https://go-tour-jp.appspot.com/welcome/1
Change the title above to describe your issue and add your feedback here, including code if necessary
https://go-tour-jp.appspot.com/moretypes/25
リンク先のページのコードで、package
にw
が含まれていましたので報告します。
wpackage main
import "fmt"
func adder() func(int) int {
sum := 0
return func(x int) int {
sum += x
return sum
}
}
func main() {
pos, neg := adder(), adder()
for i := 0; i < 10; i++ {
fmt.Println(
pos(i),
neg(-2*i),
)
}
}
github上では問題ないようでした
Context: https://go-tour-jp.appspot.com/flowcontrol/1
The content of the page of "for statement" is still written by deprecated
syntax and you'll encounter an error as follows:
prog.go:7:10: syntax error: var declaration not allowed in for initializer
It's helpful for beginner to update the sample code.
package main
import "fmt"
func main() {
sum := 0
for var i int = 0; i < 10; i++ {
sum += i
}
fmt.Println(sum)
}
package main
import "fmt"
func main() {
sum := 0
for i := 0; i < 10; i++ {
sum += i
}
fmt.Println(sum)
}
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.