Run gofmt -w on everything. Add 'gogc' option to use Go garbage

collector for memory management.
This commit is contained in:
gmp
2019-06-11 12:38:22 -04:00
parent d0654613ea
commit 9a4fabda24
297 changed files with 6690 additions and 6641 deletions
+3 -3
View File
@@ -1,4 +1,5 @@
package main
//go:generate nswrap
import (
@@ -13,8 +14,8 @@ func cb(super ns.ClassThreeSupermethods) ns.Int {
func main() {
o := ns.ClassOneAlloc().Init()
fmt.Println("i1 = ",o.Geti1())
fmt.Println("p1 = ",o.Getp1())
fmt.Println("i1 = ", o.Geti1())
fmt.Println("p1 = ", o.Getp1())
p1 := o.Getp1()
fmt.Println("*p1 = ", *p1)
*p1 = 17
@@ -31,4 +32,3 @@ func main() {
fmt.Println(o3.Hi2(np))
fmt.Println(o3.Geti1())
}