A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
4
Task/Memory-allocation/Go/memory-allocation-1.go
Normal file
4
Task/Memory-allocation/Go/memory-allocation-1.go
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
func inc(n int) {
|
||||
x := n + 1
|
||||
println(x)
|
||||
}
|
||||
4
Task/Memory-allocation/Go/memory-allocation-2.go
Normal file
4
Task/Memory-allocation/Go/memory-allocation-2.go
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
func inc(n int) *int {
|
||||
x := n + 1
|
||||
return &x
|
||||
}
|
||||
1
Task/Memory-allocation/Go/memory-allocation-3.go
Normal file
1
Task/Memory-allocation/Go/memory-allocation-3.go
Normal file
|
|
@ -0,0 +1 @@
|
|||
type s struct{a, b int}
|
||||
1
Task/Memory-allocation/Go/memory-allocation-4.go
Normal file
1
Task/Memory-allocation/Go/memory-allocation-4.go
Normal file
|
|
@ -0,0 +1 @@
|
|||
&s{}
|
||||
1
Task/Memory-allocation/Go/memory-allocation-5.go
Normal file
1
Task/Memory-allocation/Go/memory-allocation-5.go
Normal file
|
|
@ -0,0 +1 @@
|
|||
new(s)
|
||||
3
Task/Memory-allocation/Go/memory-allocation-6.go
Normal file
3
Task/Memory-allocation/Go/memory-allocation-6.go
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
make([]int, 3)
|
||||
make(map[int]int)
|
||||
make(chan int)
|
||||
Loading…
Add table
Add a link
Reference in a new issue