Skip to content

Instantly share code, notes, and snippets.

View andrewmkano's full-sized avatar
🏓

Andres Martinez andrewmkano

🏓
View GitHub Profile
@andrewmkano
andrewmkano / callbacks_v1.go
Last active January 26, 2023 14:47
WebAssembly example with Go
package callbacks
import (
"fmt"
"syscall/js"
)
func HasRepeatedChars(this js.Value, args []js.Value) any {
if len(args) > 1 {
fmt.Println("This callback only needs a single argument")
@andrewmkano
andrewmkano / contact_Initial.go
Created February 20, 2021 21:03
Prerequisite queries for the multi-insert example
package models
import (
"database/sql"
"fmt"
"strings"
"github.com/pkg/errors"
)