Profile

Cover photo
vincenzo di somma
Works at Monetas
Lives in Pisa
404 followers|67,997 views
AboutPostsPhotosYouTubeReviews

Stream

 
Anyone running Ubuntu with kernel 4.x?
1
vincenzo di somma's profile photoRik Carton's profile photo
3 comments
Add a comment...

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
404 people
Guilherme Salgado's profile photo
Christian Theune's profile photo
Mikeal Rogers's profile photo
Harm Aarts's profile photo
Andrew Deane's profile photo
James Tait's profile photo
Rocco Giannantonio's profile photo
Sidnei da Silva's profile photo
Flavio Campos Medina's profile photo
 
Anyone has experience with miniDrive and XPS 13 2015? I wonder if it works.
1
vincenzo di somma's profile photo
 
Works perfectly.
Add a comment...

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
404 people
Guilherme Salgado's profile photo
Christian Theune's profile photo
Mikeal Rogers's profile photo
Harm Aarts's profile photo
Andrew Deane's profile photo
James Tait's profile photo
Rocco Giannantonio's profile photo
Sidnei da Silva's profile photo
Flavio Campos Medina'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 - 3 years ago
reviewed 3 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 - 3 years ago
reviewed 3 years ago