mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 01:08:53 +08:00
add 04.4.md translate for ch 4.4
This commit is contained in:
9
eBook/examples/chapter_4/user_init.go
Normal file
9
eBook/examples/chapter_4/user_init.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package main
|
||||
import (
|
||||
"fmt"
|
||||
"./trans"
|
||||
)
|
||||
var twoPi = 2 * trans.Pi
|
||||
func main() {
|
||||
fmt.Printf("2*Pi = %g\n", twoPi) // 2*Pi = 6.283185307179586
|
||||
}
|
Reference in New Issue
Block a user