feat(SetBase): new parameter: Accumulation
This commit is contained in:
@ -6,6 +6,7 @@ type SetBaseOptions struct {
|
||||
Latitude *float64
|
||||
Longitude *float64
|
||||
Height *float64
|
||||
Accumulation *int
|
||||
}
|
||||
|
||||
type SetBaseOptionFunc func(opts *SetBaseOptions)
|
||||
@ -47,3 +48,9 @@ func WithBaseHeight(value float64) SetBaseOptionFunc {
|
||||
opts.Height = &value
|
||||
}
|
||||
}
|
||||
|
||||
func WithAccumulation(value int) SetBaseOptionFunc {
|
||||
return func(opts *SetBaseOptions) {
|
||||
opts.Accumulation = &value
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user