Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

SIVA Siva-Karthi

🎯
Focusing
View GitHub Profile
@Siva-Karthi
Siva-Karthi / values_pointers.go
Created Oct 14, 2020 — forked from josephspurrier/values_pointers.go
Golang - Asterisk and Ampersand Cheatsheet
View values_pointers.go
/*
********************************************************************************
Golang - Asterisk and Ampersand Cheatsheet
********************************************************************************
Also available at: https://play.golang.org/p/lNpnS9j1ma
Allowed:
--------
p := Person{"Steve", 28} stores the value
View PythonClosure.py
#https://www.programiz.com/python-programming/closure
def print_msg(msg):
# This is the outer enclosing function
def printer():
# This is the nested function
print(msg)
printer()