mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 04:48:29 +08:00
fix: some conflicts on examples.
This commit is contained in:
@@ -1,25 +1,13 @@
|
|||||||
package main
|
package main
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
=======
|
|
||||||
>>>>>>> 0364d180eb1d1b8067d1248ace49ca46c816e541
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
func main() {
|
|
||||||
var goos string = os.Getenv("GOOS")
|
|
||||||
fmt.Printf("The operating system is: %s\n", goos)
|
|
||||||
path := os.Getenv("PATH")
|
|
||||||
fmt.Printf("Path is %s\n", path)
|
|
||||||
}
|
|
||||||
=======
|
|
||||||
func main() {
|
func main() {
|
||||||
var goos string = os.Getenv("GOOS")
|
var goos string = os.Getenv("GOOS")
|
||||||
fmt.Printf("The operating system is: %s\n", goos)
|
fmt.Printf("The operating system is: %s\n", goos)
|
||||||
path := os.Getenv("PATH")
|
path := os.Getenv("PATH")
|
||||||
fmt.Printf("Path is %s\n", path)
|
fmt.Printf("Path is %s\n", path)
|
||||||
}
|
}
|
||||||
>>>>>>> 0364d180eb1d1b8067d1248ace49ca46c816e541
|
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
package trans
|
package trans
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
import "math"
|
import "math"
|
||||||
|
|
||||||
@@ -8,10 +7,3 @@ var Pi float64
|
|||||||
func init() {
|
func init() {
|
||||||
Pi = 4 * math.Atan(1) // init() function computes Pi
|
Pi = 4 * math.Atan(1) // init() function computes Pi
|
||||||
}
|
}
|
||||||
=======
|
|
||||||
import "math"
|
|
||||||
var Pi float64
|
|
||||||
func init() {
|
|
||||||
Pi = 4 * math.Atan(1) // init() function computes Pi
|
|
||||||
}
|
|
||||||
>>>>>>> 0364d180eb1d1b8067d1248ace49ca46c816e541
|
|
||||||
|
Reference in New Issue
Block a user