forked from forgejo/forgejo
Paging function for users and repositories
This commit is contained in:
parent
7ffdabb28f
commit
63cc14062a
9 changed files with 71 additions and 7 deletions
|
@ -458,6 +458,16 @@ func (f StrTo) Int64() (int64, error) {
|
|||
return int64(v), err
|
||||
}
|
||||
|
||||
func (f StrTo) MustInt() int {
|
||||
v, _ := f.Int()
|
||||
return v
|
||||
}
|
||||
|
||||
func (f StrTo) MustInt64() int64 {
|
||||
v, _ := f.Int64()
|
||||
return v
|
||||
}
|
||||
|
||||
func (f StrTo) String() string {
|
||||
if f.Exist() {
|
||||
return string(f)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue