Skip to content

Commit

Permalink
Pointers Notes is added
Browse files Browse the repository at this point in the history
  • Loading branch information
sundeeep committed Nov 14, 2024
1 parent 4eff088 commit 9225b90
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module golang-demystified

go 1.23.3

require github.com/gorilla/mux v1.8.1 // indirect
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY=
github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ=
4 changes: 4 additions & 0 deletions memory/pointers/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## A Practical Explanation of pointers in Go

- In Go, a function that returns a pointer can return nil. When a function returns a pointer.
- It means, it returns the memory address of a variable or an object. A pointer in Go can have a value of nil, which indicated that it doesn't point to any valid memory location.

0 comments on commit 9225b90

Please sign in to comment.