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:
6
eBook/examples/chapter_4/init.go
Normal file
6
eBook/examples/chapter_4/init.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package trans
|
||||
import "math"
|
||||
var Pi float64
|
||||
func init() {
|
||||
Pi = 4 * math.Atan(1) // init() function computes Pi
|
||||
}
|
Reference in New Issue
Block a user