Tag go

7 bookmarks have this tag.

godocs.io

godocs.io
go,programming

Gripes With Go

peppe.rs/posts/gripes_with_go
go,haskell,programming,rust

banging errors in go

Reposted 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!

go

CodeReviewComments

github.com/golang/go/wiki/CodeReviewComments

This page collects common comments made during reviews of Go code, so
that a single detailed explanation can be referred to by shorthands.
This is a laundry list of common style issues, not a comprehensive style guide.

go,programming

Writing safe-to-use Go libraries

Reposted blog.orsinium.dev/posts/go/safe-api

The Go standard library is full of bad design choices from the perspective of safety of use.

go

Делаем Django на Go (ну почти)

blog.exo.icu/posts/django-on-go

Go - классный язык программирования у которого есть все шансы обеспечить конкуренцию Python. Этот очерк показывает как из уже существующих библиотек построить крутой бекенд для web-приложения.

Теперь почти все готово к первому билду, осталось только синхронизировать зависимости, выполняем такую команду

go mod tidy && go mod verify && go mod tidy

go,programming,web

5 Ways to Write a Go Database Model

pboyd.io/posts/5-ways-to-write-a-go-database-model

Choosing the right tools to write a database model in Go can be overwhelming. This post describes the various approaches.

database,go,programming