Working auth and photo json endpoint
Signed-off-by: Kris Nóva <kris@nivenly.com>
This commit is contained in:
parent
ef275f97f4
commit
e4323b6047
2032 changed files with 821464 additions and 52 deletions
17
vendor/github.com/dsoprea/go-utility/v2/filesystem/utility.go
generated
vendored
Normal file
17
vendor/github.com/dsoprea/go-utility/v2/filesystem/utility.go
generated
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
package rifs
|
||||
|
||||
import (
|
||||
"io"
|
||||
"os"
|
||||
|
||||
log "github.com/dsoprea/go-logging"
|
||||
)
|
||||
|
||||
// GetOffset returns the current offset of the Seeker and just panics if unable
|
||||
// to find it.
|
||||
func GetOffset(s io.Seeker) int64 {
|
||||
offsetRaw, err := s.Seek(0, os.SEEK_CUR)
|
||||
log.PanicIf(err)
|
||||
|
||||
return offsetRaw
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue