Feb 23, 2017

[Go] go has no explicit constructor for type

We can't do this in go:

var a int()
// OR
var a int{}
// ONLY
var a int = int(10)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.