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
-
deman2994y@frogstair I just uploaded the gopher svg, arranged it and added some text. I think there are plenty of webshops in the US (or where are you located), which offer such a service. It was about 12-13 EUR + shipping costs.
Thanks for welcoming me, but I think it will need some more time, to become good in go. Currently trying to initialize a slice of structs in an extra function... Maybe the mug will motivate me again later. -
deman2994y@frogstair I am actually not sure about what is best practice. I created a struct "Runes" for runes (the viking stuff, not the larger byte type). Then I just created a slice named "rune", which contains 24 runes from the elder futhark, their name, the number value, normal alphabet equivalent and the rune itself in unicode. For now it's in the main func, but to keep it clean I want to put it in an own function, so I can call it. Dunno if it's good practice.
It's just a small "project", which I thought about, since it contains struct, slice, some math, some working on strings, loops and if/case. Just to cover the basics. -
deman2994y@frogstair I will check it later. Thank you. Do you know of small projects on github etc.? I'd like to read some actual well written code in context to learn golang specific best practice.
-
@deman @frogstair Hello fellow gophers!
Nice mug!
Also - The nice thing about go, is that the standard libs are open for you to read. So.... If you want to read some idomatic go (the go way of doing things) go read that!
The way to init a slice is to use a make, with the size you want, then iterate over the slice using range, and init each instance. You could "go" routine it - but you will need to "wait" for it to complete before using it.
Also - go read the go FAQ page! -
arfro22804yOhh Go. Any good (and checked) resources for advanced use? Currently digging some open source project in Go and I want to contribute with more advanced stuff
-
That should definitely be a post of #wk211 - you made it.
Sorry for the pun.
Congratulations on the awesome mug, btw. -
arfro22804y@frogstair oh i think you misunderstood, I'm contributing already to one project, it's going good but I want to put my hands on more advanced features and I feel like I'm lacking some Go specific knowledge
-
I love this ...
I am currently learning golang, i think i also need this for motivation
Related Rants
I'm learning golang currently. I 'designed' a mug to keep myself motivated. Turned out pretty good.
rant
mug
go
golang