Skip to content

Instantly share code, notes, and snippets.

View inpos's full-sized avatar

Роман inpos

View GitHub Profile
@pseudomuto
pseudomuto / main_1.go
Last active October 12, 2024 14:49
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)
@miguelmota
miguelmota / example.proto
Last active August 9, 2024 14:34
Golang protobuf marshal and unmarshal example
syntax = "proto3";
message Message {
bytes text = 1;
}