summaryrefslogtreecommitdiff
path: root/daily/19-May-2025.md
diff options
context:
space:
mode:
authorJasper Ras <jaspert.ras@gmail.com>2025-07-15 20:34:14 +0200
committerJasper Ras <jaspert.ras@gmail.com>2025-07-15 20:34:14 +0200
commit62483ddbc85da140b36eee2fa6bc43e7093eb3ad (patch)
tree33550a06020ec71e2777a6241447a40ba98c10ca /daily/19-May-2025.md
parent04db4c941799bfbfac666160e7b4298716649a7f (diff)
parenta9886bf2f8a35369a2c42070c5f83504dfab2bc5 (diff)
vault backup: 2025-07-15 20:34:14
Diffstat (limited to 'daily/19-May-2025.md')
-rw-r--r--daily/19-May-2025.md12
1 files changed, 0 insertions, 12 deletions
diff --git a/daily/19-May-2025.md b/daily/19-May-2025.md
deleted file mode 100644
index aa9ab6b..0000000
--- a/daily/19-May-2025.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# Another note on Go
-`image/color` package features the Color interface defining a Color as just a type that has a method `RGBA() (r, g, b, a uint32)`. It has a struct `RGBA` defining this method. So for example to define green we can say: `color.RGBA{0x00, 0xFF, 0x00, 0xFF}` R G B A respectively.
-
-Packaging doing stuff with networking are grouped under `net`, e.g `net/http`
-
-Using `io.Copy` we can copy output from a reader to a writer. This way we can for example copy a HTTP response directly to stdout instead of buffering the entire output first.
-
-`strings.HasPrefix` exists
-
-To get a time delta we can use `time.Since` which returns a `time.Time`. We can just call for example `Seconds()` on that to get the elapsed seconds.
-
-Goroutines run concurrently and communicate over channels, they are started with the `go` keyword. Sending or receiving on a channel block the goroutine. \ No newline at end of file