Something went wrong. Try again.
simple and extensible all-purpose media organizer inspired by qimgv
Something went wrong. Try again.
1234567891011121314151617181920212223package protocol
import ( "sync/atomic")
type Request struct { ID int `json:"id"` Method string `json:"method"` Params any `json:"params"`}
var id = atomic.Int32{}
func NewRequest(method string, params any) Request { return Request { ID: int(id.Add(1)), Method: method, Params: params, }}