11 posts tagged with "golang"

    go pointers: asterisks and ampersand reference

    2022-11-28

     | 

    ~3 min read

     | 

    519 words

    Joseph Spurrier has a great gist about how to think about pointers in Golang. He’s also made it available in an interactive Go playground. I…

    go: working with json - marshalling and unmarshaling

    2022-11-28

     | 

    ~2 min read

     | 

    263 words

    I was trying to understand more about how to actually use the package within Golang. Fortunately, Go By Example has a great set of…

    goland: cannot resolve reference debugging

    2022-11-28

     | 

    ~1 min read

     | 

    154 words

    Every now and then GoLand seems to get in a borked state where none of the references in my Go project actually resolve. It’s annoying…

    go: functions with multiple return types

    2022-11-28

     | 

    ~1 min read

     | 

    1 words

    https://www.geeksforgeeks.org/function-returning-multiple-values-in-go-language/

    go @ plaid

    2022-11-28

     | 

    ~1 min read

     | 

    66 words

    slides Super summary: “Do cool things with boring code.” Not particularly innovative Not a super robust type system But there’s normally a…

    go: api basics

    2022-11-28

     | 

    ~4 min read

     | 

    783 words

    To demonstrate a few basics of an HTTP server and API with Go, I’ll use the Star Wars API (swapi.dev). Useful packages: encoding/json…

    go: module basics

    2022-11-28

     | 

    ~1 min read

     | 

    140 words

    Adding an module to your Go program requires registering it in the file. For the basics, see: Get started with Go. However, here’s a simple…

    go: reading the manual

    2022-11-28

     | 

    ~1 min read

     | 

    187 words

    If you’re working in Golang and you want to understand how a function works you can access documentation locally via ’s CLI command: You…

    throwing errors in golang

    2022-11-28

     | 

    ~2 min read

     | 

    346 words

    Imagine we’re counting the nucleotides in a given strand of DNA. If there’s an invalid nucleotide, we want to abort the process. How might…

    using spy to watch for changes

    2022-11-28

     | 

    ~2 min read

     | 

    264 words

    Another entry in my Package Discovery series. Today, I’m looking at . Jaime Pillora wrote a nifty little application called Spy. Described…

    getting the go tour running locally

    2022-11-28

     | 

    ~4 min read

     | 

    614 words

    In A Tour of Go, one of the options is to run the tour offline. The instructions seem simple enough: Install Go Run the command to fetch the…

Return to all tags