Cache cakes in memory and update SQL logic
This commit is contained in:
parent
4b2fcbc58a
commit
066295bbe5
4 changed files with 88 additions and 45 deletions
13
main.go
13
main.go
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue