mirror of
https://github.com/restic/restic.git
synced 2026-11-04 14:29:21 +00:00
Apply go fix -omitzero ./...
This commit is contained in:
1 parent
8ed263c6dd
commit
fb36a7f59b
4 files changed
+9
-9
No files matched your search
@@ -214,7 +214,7 @@ func (s *statefulOutput) PrintObjectJSON(kind, id, nodepath, treeID string, sn *
|
|||||||
Path string `json:"path"`
|
Path string `json:"path"`
|
||||||
ParentTree string `json:"parent_tree,omitempty"`
|
ParentTree string `json:"parent_tree,omitempty"`
|
||||||
SnapshotID string `json:"snapshot"`
|
SnapshotID string `json:"snapshot"`
|
||||||
Time time.Time `json:"time,omitempty"`
|
Time time.Time `json:"time"`
|
||||||
}{
|
}{
|
||||||
ObjectType: kind,
|
ObjectType: kind,
|
||||||
ID: id,
|
ID: id,
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ type testMatch struct {
|
|||||||
Path string `json:"path,omitempty"`
|
Path string `json:"path,omitempty"`
|
||||||
Permissions string `json:"permissions,omitempty"`
|
Permissions string `json:"permissions,omitempty"`
|
||||||
Size uint64 `json:"size,omitempty"`
|
Size uint64 `json:"size,omitempty"`
|
||||||
Date time.Time `json:"date,omitempty"`
|
Date time.Time `json:"date"`
|
||||||
UID uint32 `json:"uid,omitempty"`
|
UID uint32 `json:"uid,omitempty"`
|
||||||
GID uint32 `json:"gid,omitempty"`
|
GID uint32 `json:"gid,omitempty"`
|
||||||
}
|
}
|
||||||
@@ -154,7 +154,7 @@ type JSONOutput struct {
|
|||||||
Path string `json:"path"`
|
Path string `json:"path"`
|
||||||
ParentTree string `json:"parent_tree,omitempty"`
|
ParentTree string `json:"parent_tree,omitempty"`
|
||||||
SnapshotID string `json:"snapshot"`
|
SnapshotID string `json:"snapshot"`
|
||||||
Time time.Time `json:"time,omitempty"`
|
Time time.Time `json:"time"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestFindPackfile(t *testing.T) {
|
func TestFindPackfile(t *testing.T) {
|
||||||
|
|||||||
@@ -130,9 +130,9 @@ type lsNodeOutput struct {
|
|||||||
Size *uint64 `json:"size,omitempty"`
|
Size *uint64 `json:"size,omitempty"`
|
||||||
Mode os.FileMode `json:"mode,omitempty"`
|
Mode os.FileMode `json:"mode,omitempty"`
|
||||||
Permissions string `json:"permissions,omitempty"`
|
Permissions string `json:"permissions,omitempty"`
|
||||||
ModTime time.Time `json:"mtime,omitempty"`
|
ModTime time.Time `json:"mtime"`
|
||||||
AccessTime time.Time `json:"atime,omitempty"`
|
AccessTime time.Time `json:"atime"`
|
||||||
ChangeTime time.Time `json:"ctime,omitempty"`
|
ChangeTime time.Time `json:"ctime"`
|
||||||
Inode uint64 `json:"inode,omitempty"`
|
Inode uint64 `json:"inode,omitempty"`
|
||||||
MessageType string `json:"message_type"`
|
MessageType string `json:"message_type"`
|
||||||
StructType string `json:"struct_type"`
|
StructType string `json:"struct_type"`
|
||||||
|
|||||||
@@ -86,9 +86,9 @@ type Node struct {
|
|||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Type NodeType `json:"type"`
|
Type NodeType `json:"type"`
|
||||||
Mode os.FileMode `json:"mode,omitempty"`
|
Mode os.FileMode `json:"mode,omitempty"`
|
||||||
ModTime time.Time `json:"mtime,omitempty"`
|
ModTime time.Time `json:"mtime"`
|
||||||
AccessTime time.Time `json:"atime,omitempty"`
|
AccessTime time.Time `json:"atime"`
|
||||||
ChangeTime time.Time `json:"ctime,omitempty"`
|
ChangeTime time.Time `json:"ctime"`
|
||||||
UID uint32 `json:"uid"`
|
UID uint32 `json:"uid"`
|
||||||
GID uint32 `json:"gid"`
|
GID uint32 `json:"gid"`
|
||||||
User string `json:"user,omitempty"`
|
User string `json:"user,omitempty"`
|
||||||
|
|||||||
Reference in new issue
Block a user