17 lines
392 B
Go
17 lines
392 B
Go
package main
|
|
|
|
import "time"
|
|
|
|
// File : holds information about a specific File
|
|
type File struct {
|
|
ID int `json:"id"`
|
|
Name string `json:"name"`
|
|
Location string `json:"location"`
|
|
Description string `json:"description"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
}
|
|
|
|
// Files : a list of File items
|
|
type Files []File
|