Tag go
7 bookmarks have this tag.
7 bookmarks have this tag.
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!
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.
The Go standard library is full of bad design choices from the perspective of safety of use.
Go - классный язык программирования у которого есть все шансы обеспечить конкуренцию Python. Этот очерк показывает как из уже существующих библиотек построить крутой бекенд для web-приложения.
Теперь почти все готово к первому билду, осталось только синхронизировать зависимости, выполняем такую команду
go mod tidy && go mod verify && go mod tidy
Choosing the right tools to write a database model in Go can be overwhelming. This post describes the various approaches.