not helpful right now
This commit is contained in:
parent
1e78bcb2a7
commit
a651696f53
@ -15,7 +15,6 @@ Variadic Functions
|
||||
Closures
|
||||
Recursion
|
||||
Pointers
|
||||
# New
|
||||
# Structs
|
||||
# Methods
|
||||
# Embedding
|
||||
|
@ -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)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user