Skip to content

Instantly share code, notes, and snippets.

View inpos's full-sized avatar

Роман inpos

View GitHub Profile
@miguelmota
miguelmota / example.proto
Last active August 9, 2024 14:34
Golang protobuf marshal and unmarshal example
syntax = "proto3";
message Message {
bytes text = 1;
}
@pseudomuto
pseudomuto / main_1.go
Last active July 25, 2024 03:38
Blog Code: Clean SQL Transactions in Golang
package main
import (
"database/sql"
"log"
)
func main() {
db, err := sql.Open("VENDOR_HERE", "YOUR_DSN_HERE")
handleError(err)