-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathprogress.go
More file actions
23 lines (20 loc) · 822 Bytes
/
progress.go
File metadata and controls
23 lines (20 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package gedcom
// Progress contains information about the progress of an operation.
//
// Progress will consist of a value for Add or Done. It will also optionally
// contain a value for Total.
type Progress struct {
// Done is how many operations have been completed so far. If Done is zero
// you should add the value of Add instead.
Done int64
// Add represents how many operations were performed since the last
// operation. It is possible for both the Done and Add to be zero. This
// means the progress did not change. Add may also be a negative value.
Add int64
// Total is the expected number of total operations. Total may change
// throughout the processing to be larger to smaller that any previous
// value.
//
// If total is zero, you should not change the existing total value.
Total int64
}