feat(SetBase): new parameter: Accumulation

This commit is contained in:
2025-06-11 12:13:20 +02:00
parent 3224e1ef0f
commit af3b3b40f3
2 changed files with 12 additions and 0 deletions

View File

@ -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
}
}