Skip to content

Commit

Permalink
fix: some conflicts on examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
appleboy committed Feb 11, 2017
1 parent 65085a8 commit 5a977ac
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 42 deletions.
38 changes: 13 additions & 25 deletions eBook/examples/chapter_4/goos.go
Original file line number Diff line number Diff line change
@@ -1,25 +1,13 @@
package main
<<<<<<< HEAD

=======
>>>>>>> 0364d180eb1d1b8067d1248ace49ca46c816e541
import (
"fmt"
"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() {
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)
}
>>>>>>> 0364d180eb1d1b8067d1248ace49ca46c816e541
package main

import (
"fmt"
"os"
)

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)
}
26 changes: 9 additions & 17 deletions eBook/examples/chapter_4/init.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
package trans
<<<<<<< HEAD

import "math"

var Pi float64

func init() {
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
package trans

import "math"

var Pi float64

func init() {
Pi = 4 * math.Atan(1) // init() function computes Pi
}

0 comments on commit 5a977ac

Please sign in to comment.