Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@yodude Neither, but it is closer to Python than to Java.
You init structs like this:
usr := Usr{id: 1273739, ...}
Arrays like this:
arr := []int{1,2}
or like this:
arr := make([]int, 3)
And you allocate memory like this:
usr := new(user)
Also go has a c++-like pointer system -
@yodude In theory yes, but I would never recommend it.
It's just not made for Android apps at all. -
BranDev1346yNice to see Golang on here. I'm a Go developer. Also that's pretty clean. I spot bson and MongoDB as well
The real way struct fields should be organized. So satisfying 😍
rant