diff --git a/examples.txt b/examples.txt index 3d76288..719586c 100644 --- a/examples.txt +++ b/examples.txt @@ -15,7 +15,6 @@ Variadic Functions Closures Recursion Pointers -# New # Structs # Methods # Embedding diff --git a/examples/new/new.go b/examples/new/new.go deleted file mode 100644 index 17fc924..0000000 --- a/examples/new/new.go +++ /dev/null @@ -1,15 +0,0 @@ -package main - -import "fmt" - -func one(xPtr *int) { - *xPtr = 1 -} -func main() { - xPtr := new(int) - fmt.Println(xPtr) - fmt.Println(*xPtr) - one(xPtr) - fmt.Println(xPtr) - fmt.Println(*xPtr) -}