Sync Sun Nov 12 23:00:09 UTC 2023
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
= 787
|
||||
https://flak.tedunangst.com/post/bango
|
||||
|
||||
Tedu wrote a tool that lets you handle errors in Go like this:
|
||||
|
||||
```
|
||||
func decomp(filename string) ([]byte, error) {
|
||||
fd := ^os.Open(filename)
|
||||
defer fd.Close()
|
||||
zd := ^gzip.NewReader(fd)
|
||||
data := ^io.ReadAll(zd)
|
||||
return data, nil
|
||||
}
|
||||
```
|
||||
|
||||
Funky!
|
||||
@@ -0,0 +1,4 @@
|
||||
= 851
|
||||
https://html-first.com/
|
||||
|
||||
> Principles to make building web software easier, faster and more inclusive.
|
||||
@@ -0,0 +1,3 @@
|
||||
= EconGraphs
|
||||
https://www.econgraphs.org/
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
= HTML First
|
||||
https://html-first.com/
|
||||
|
||||
> Principles to make building web software easier, faster and more inclusive.
|
||||
@@ -1,16 +0,0 @@
|
||||
= banging errors in go
|
||||
https://flak.tedunangst.com/post/bango
|
||||
|
||||
Tedu wrote a tool that lets you handle errors in Go like this:
|
||||
|
||||
```
|
||||
func decomp(filename string) ([]byte, error) {
|
||||
fd := ^os.Open(filename)
|
||||
defer fd.Close()
|
||||
zd := ^gzip.NewReader(fd)
|
||||
data := ^io.ReadAll(zd)
|
||||
return data, nil
|
||||
}
|
||||
```
|
||||
|
||||
Funky!
|
||||
Reference in New Issue
Block a user