Skip to content

Instantly share code, notes, and snippets.

View jamiecuthill's full-sized avatar

Jamie Cuthill jamiecuthill

  • Just Eat Takeaway
  • United Kingdom
View GitHub Profile
package main
import (
"fmt"
"os"
"strconv"
)
func main() {
in, _ := strconv.Atoi(os.Args[1])
@jamiecuthill
jamiecuthill / keybase.md
Created April 9, 2018 20:10
keybase.md

Keybase proof

I hereby claim:

  • I am jamiecuthill on github.
  • I am jamiecflyt (https://keybase.io/jamiecflyt) on keybase.
  • I have a public key ASD9XdJm47GkqnplRHGAR69RAygAY9_8g-ZcpPDAICPJdQo

To claim this, I am signing this object:

@jamiecuthill
jamiecuthill / sqlexec.go
Created February 26, 2016 11:14
sqlmock false positive on Exec with ExpectationsWereMet
package example
import "database/sql"
func RunExecs(db *sql.DB) {
_, _ = db.Exec("THE FIRST EXEC")
_, _ = db.Exec("THE WRONG EXEC")
}
@jamiecuthill
jamiecuthill / errors.go
Last active December 2, 2015 10:09
http json encoding errors
package main
import (
"encoding/json"
)
type ErrorType struct {
Title string `json:"title"`
Detail string `json:"detail"`
Code int `json:"code"`