Skip to content

Instantly share code, notes, and snippets.

View fardeadok's full-sized avatar

fardeadok fardeadok

View GitHub Profile
@fardeadok
fardeadok / golang examples
Last active April 9, 2023 17:07
Golang gists
switch val := val.(type) {
case int, int8, int16, int32:
vo := reflect.ValueOf(val)
err = writePrimitiveOp(buf, vo.Interface().(int32), opInt)
test sync