Profile

Cover photo
vincenzo di somma
Works at Monetas
Lives in Pisa
396 followers|66,914 views
AboutPostsPhotosYouTubeReviews

Stream

vincenzo di somma

Shared publicly  - 
 
Alternative to label
Get out of a for/select loop without using labels: func main() {   OUT:     for {         select {         case ... ):             ...         default:             break OUT         }     }     .... } Refactoring out the for loop: func main() {     ...     ...
1

vincenzo di somma

Shared publicly  - 
 
Basic dependency management
- To install all the dependencies of a package:   $ go list -f '{{ join .Imports "\n" }}' | xargs go get
1

vincenzo di somma

Shared publicly  - 
 
**
os.Exit() terminates immediately and deferred functions are
not run.
1
Have him in circles
396 people
Rosario Savarese's profile photo
Alex Limi's profile photo
Sai Kantamneni's profile photo
Bruno Ripa's profile photo
Paolo Ruggeri's profile photo
Laurentiu Gabriel's profile photo
Pietro Battiston's profile photo
Mark Ramm-Christensen (Canonical.com)'s profile photo
qnh li's profile photo

vincenzo di somma

Shared publicly  - 
 
Multiple switch cases
Switch cases can be separated by coma:     func shouldEscape(c byte) bool {         switch c {         case ' ', '?', '&', '=', '#', '+', '%':             return true             }         return false         }
1

vincenzo di somma

Shared publicly  - 
 
TestMain in go 1.4 testing module
Provide setup and teardow to your test with g0 1.4 testing module:   func setUp () {   ... }   func tearDown () {   ... } func TestMain ( m * testing . M ) {      setUp ()      r := m. Run ()      tearDown () // cannot run tearDown in a defer because of os....
1

vincenzo di somma

Shared publicly  - 
 
TestMain in go 1.4 testing module
Provide setup and teardow to your test with g0 1.4 testing module:   func setUp () {   ... }   func tearDown () {   ... } func TestMain ( m * testing . M ) {      setUp ()      r := m. Run ()      tearDown () // cannot run tearDown in a defer because of os....
1

vincenzo di somma

Shared publicly  - 
 
**
Expressions "x |= y" is equivalent to "x = x | y", just like "x += y" is equivalent to "x = x + y".  Same for &= .
1

vincenzo di somma

Shared publicly  - 
1
People
Have him in circles
396 people
Rosario Savarese's profile photo
Alex Limi's profile photo
Sai Kantamneni's profile photo
Bruno Ripa's profile photo
Paolo Ruggeri's profile photo
Laurentiu Gabriel's profile photo
Pietro Battiston's profile photo
Mark Ramm-Christensen (Canonical.com)'s profile photo
qnh li's profile photo
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Pisa
Links
Contributor to
Work
Occupation
Coding for a better world
Employment
  • Monetas
    Senior Software Developer, 2014 - present
  • Canonical Ltd.
    Senior Software Developer, 2008 - 2014
Basic Information
Gender
Male
Complete disappointment. Usual french attitude.
Public - 2 years ago
reviewed 2 years ago
Extraordinary food, not something you can find everywhere. Not a budget restourant of course, but totally worth it.
Atmosphere: ExcellentDecor: ExcellentService: Excellent
Public - 2 years ago
reviewed 2 years ago