Add existing codebase
This commit is contained in:
commit
e12550a643
25 changed files with 1409 additions and 0 deletions
17
pkg/brainbuffer/repository/page.go
Normal file
17
pkg/brainbuffer/repository/page.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package repository
|
||||
|
||||
type Page struct {
|
||||
size int
|
||||
offset int
|
||||
}
|
||||
|
||||
func DefaultPage() Page {
|
||||
return Page{
|
||||
size: 20,
|
||||
offset: 0,
|
||||
}
|
||||
}
|
||||
|
||||
func EmptyPage() Page {
|
||||
return Page{}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue