mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-12-01 03:45:28 +00:00
13 lines
177 B
Go
13 lines
177 B
Go
|
package gitea
|
||
|
|
||
|
type FileResponse struct {
|
||
|
Exists bool
|
||
|
ETag []byte
|
||
|
MimeType string
|
||
|
Body []byte
|
||
|
}
|
||
|
|
||
|
func (f FileResponse) IsEmpty() bool {
|
||
|
return len(f.Body) != 0
|
||
|
}
|