/
2025-03-06 Meeting notes

2025-03-06 Meeting notes

 Date

Mar 6, 2025

 Participants

  • @Tyler Hill

  • @Josh

 Agenda

  • Questions

  • API Tech Stack

    • GoLang

    • MongoDB

    • ChromeDP

 Discussion topics

Item

Notes

Item

Notes

GoLang

  • packages

    • say what packages a file is in at the top

    • then you can import them

    • go.mod

      • reference internal packages through the projects github link

      • go mod commands, allows setting up aliases between nebula-api and api-tools

  • syntax

    • naming variables in the return type, can be unclear

    • declare with var with type

    • := implicit typing, must be inside a function

      • then you can do = for assignment after

  • types

    • no char type, only rune which supports unicode

    • no implicit casting, must be done explicitly

    • defaults to float64

    • no null type, default is nil

  • for, if, switch

    • don’t need parenthesis

    • recommend the exercises!

    • you can assign and do if/switch comparison in the same line

  • defer

    • put a function on the call stack while in another

    • in other words, that function is called after the current one finishes

    • ex. to close a file when done

  • recover

    • when panic is called (to throw an error)

    • recover can catch this

    • you have to defer the function that intends to recover so it is run when the current function returns

  • pointers

    • default to nil, not too bad compared to other languages

    • same & and * syntax as C++

  • struct

    • Go isn’t object oriented but this is as close as its gets

  • arrays vs. slices

    • slices can grow

  • make

    • allocates the needed memory

    • append will copy over values when the allocated size is exceeded

  • map

    • pretty similar to other languages

Questions

  • accessing a not present map value

    • gives you its default value, nil for structs, 0 for ints

 Decisions

 Action items

Related content