Cache cakes in memory and update SQL logic

This commit is contained in:
bronku 2025-03-26 12:12:33 +01:00
parent 4b2fcbc58a
commit 066295bbe5
4 changed files with 88 additions and 45 deletions

13
main.go
View file

@ -2,6 +2,19 @@ package main
import "github.com/Bronku/iroon/cmd/iroon"
type test struct {
data []int
}
func (t *test) xd() []int {
return t.data
}
func (t *test) setData(input []int) {
t.data = make([]int, len(input))
copy(t.data, input)
}
func main() {
iroon.Run()
}