when I import the pack1, if I add the ./pack1/pack1, it will fai… (#760)

* when I import the pack1, if I add the ./pack1/pack1, it will failed

* also the import exercise need updating

* the path in this file
This commit is contained in:
yingtaojuzi
2020-02-13 14:49:55 +08:00
committed by GitHub
parent 64a617897d
commit 16f2309acb
3 changed files with 6 additions and 6 deletions

View File

@@ -0,0 +1,14 @@
package main
import (
"./pack1/pack1"
"fmt"
)
func main() {
var test1 string
test1 = pack1.ReturnStr()
fmt.Printf("ReturnStr from package1: %s\n", test1)
fmt.Printf("Integer from package1: %d\n", pack1.Pack1Int)
// fmt.Printf(“Float from package1: %f\n”, pack1.pack1Float)
}