Golang
I need to be good enough at GoLang to get a kubernetes job.
Resources¶
- Udemy Course (Accessed via Library)
Course Notes, by Section¶
Section 1: Setup¶
- instructor says he's helpful
- zip file full of diagrams, they're the same as the lecture's images????
- not gonna join your community, bro
- Installers are for chumps. I used
brew install golang - already have it
- I really would just like this in text. listening to a 3.5 min video is silly.
- looks like I need a diff Go extension; maybe it's the same one, but Google subsumed it.
- Wasn't asked to install any additional tools
- a nice warning! might mean that there's reused names from lesson to lesson
Section 2: Simple Start¶
mostly just explaining Hello World
- oh I am NOT excited to see this just start with naked files.
- script in [first_file.go]
- doesn't tell me how to run it??
??? error
can't do
go first_file.go, it's gotta bego run first_file.go
- I'll listen to the guy now
- CLI Options:
run: compile & executebuild: just compile, leave an executable artifactfmt: Formats code; linterinstall: packagesget: packagestest: can't wa't for unit testing, v glad it's a builtin
- CLI Options:
- oh yeah, this is all going to be reusing Main repeatedly.
go builddoesn't create exe files unless the file haspackage main
- [[https://golang.org/pkg]]
- I'm familiar w/ Java
- Aced quiz, doing all my notes here instead
Section 3: Real Code¶
looks like some cards, a CLASSIC code problem. gonna reuse the First File, but in the cards directory.
- Problem Statement
- did it
- variables! I think my syntax highlighter isn't up to snuff, and autocomplete isn't working either
- ALL FUTURE KNOWLEDGE CONTAINED WITHIN cards DIRECTORY