Jeff %!s(int64=11) %!d(string=hai) anos
pai
achega
a8fdc32654
Modificáronse 1 ficheiros con 14 adicións e 0 borrados
  1. 14 0
      eBook/examples/chapter_9/book/package_test.go

+ 14 - 0
eBook/examples/chapter_9/book/package_test.go

@@ -0,0 +1,14 @@
+package main
+
+import (
+    "fmt"
+    "./pack1/pack1"
+)
+
+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)
+}