Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 30
  1. How to use Confidential Computing to prove what code is on your server

    If you’re a developer, you’ve probably got a few deployments under your belt.

  2. Compliance as a runtime problem

    Let’s try a thought experiment: I’m a customer who has been burned by a bad vendor, and you’re a competing vendor trying to sell me your service.

  3. Dear HTTP service, how can I trust you not to break my heart?

    When you send your most intimate data to an AI-platform, how do you know it’s not being shared with third parties?

  4. Writing Benchmarks: Performance testing in Go/Golang

    A big part of programming is about making choices: What data type do I use?

  5. Avoid inaccurate tests: Use httptest when testing HTTP handlers in Go/Golang

    In Go, testing HTTP handlers is more work than testing regular functions.

  6. Sets in Go/Golang – Using Maps and Recommended Packages

    Go doesn’t offer a native set type, and the standard library doesn’t provide one either.

  7. No string interpolation in Go/Golang. Use these alternatives

    Coming from other languages it can be surprising that Go does not support string interpolation.

  8. Devlog I: The foundations of a Go/Golang web application

    Back in March I began working on a Go web application called Househunt.

  9. Prevent sensitive data from leaking in Go/Golang

    By default Go allows you to easily format, log or output values of most types.

  10. Maps of functions in Go (Golang)

    Sometimes a declarative approach makes your code a lot clearer.

  11. Documented Example Project: Go/Golang Web Application

    You know the saying “a good example is worth a thousand blog posts”?

  12. Composable HTTP Handlers using generics in Go/Golang

    Implementing HTTP handlers in Go can be a bit of a chore.

  13. URL path parameters and variables in Go (Golang) 1.22 and later

    When dealing with HTTP based API’s it’s common to pass data using URL path parameters (also called path variables).

  14. Change JSON Time and Date format in Go/Golang

    The JSON standard does not have a built in type for time, so time values are usually handled as strings.

  15. How to Compare Time or Date in Go/Golang with example code

    It’s tempting to think of time (and dates by extension) as an ever increasing number.

  16. Get the Current Time: The Monotonic Clock in Go/Golang

    In the documentation of Go’s time package you will find the term “monotonic clock” roughly 30 times.

  17. Time and Location Explained in Go/Golang

    Have you ever used time.Now() or ran a method like createdAt.Format(...)?

  18. How to Parse a Time or Date using time.Parse in Go/Golang

    Every Go developer trips up on it at some point: parsing a date or time.

  19. Anonymous structs in Go (Golang): What, How and When

    Have you run into an elaborate struct definition with a struct inside a struct?

  20. Should you store *that value* in a Go/Golang context?

    You might find yourself needing to pass new data to a significant amount of functions in your code base.

  21. Type safe way to add a value to a Go/Golang context

    Are you unsure how to pass trace IDs (or other request-scoped data) through your application stack?

  22. Dealing with large structs in (table) tests in Go/Golang

    Working with a lot of large structs in tests can be a bit of a pain.

  23. Make, Literals and Re-slicing - Go/Golang slice fundamentals

    In this series we’ve thus far seen only one way of creating slices: by slicing an existing array. food:= [4]string{"🍔", "🍕", "🍏", "🍊"} fruits := food[2:4] fmt.Println(fruits) // prints [🍏 🍊] Creating slices like this was useful to introduce and demonstra…

  24. Should you use a slice of pointers to structs in Go/Golang?

    While writing Go, you might might run into the following situation: You want to collect the results of a function in a slice.

  25. Should you use pointers to slices in Go/Golang?

    If you’re unfamiliar with Go slices, it might look like a good idea to pass around a pointer instead of the “entire collection”. s := []string{"👁", "👃", "👁"} doSomething(&s) andAgain(&s) However, this has no real upsides.

  26. Append and Copy - Go/Golang slice fundamentals

    Did you know that append can turn broccoli into pizza?

  27. Arrays and slices - Go/Golang slice fundamentals

    When it comes to slices you can get pretty far without knowing how the sausage is made.

  28. Choosing between context.Background() and context.TODO() in Go/Golang

    If you have used the context package in the standard library, you might have noticed that there are two constructors that create an empty context: context.Background() and context.TODO().

  29. Context cancellation: Don't waste resources on aborted requests in Go/Golang

    If you open your browser and load a web page, but press the “stop loading” or “X” button before it is fully loaded, the browser will abort any open requests.

  30. Confused by http.HandlerFunc? This post makes it click - Learn Go/Golang

    When trying to use functions as Go http handlers, you will run into http.HandlerFunc from the net/http package.