Skip to content

Instantly share code, notes, and snippets.

@wesmota
wesmota / codility_arr_diff
Created September 15, 2021 12:15 — forked from tomgro/codility_arr_diff
go golang
func Solution(A []int) int {
// write your code in Go 1.4
var sum int = 0;
for _, v := range A {
sum += v
}
// fmt.Println(sum)
@wesmota
wesmota / sqlite3gorm.go
Created November 1, 2020 21:12 — forked from mashingan/sqlite3gorm.go
Simple CRUD example working with Gorm
package main
import (
"fmt"
"net/http"
"strconv"
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/sqlite"
"github.com/labstack/echo"