diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2022-06-20 18:26:58 -0230 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2022-06-20 18:26:58 -0230 |
| commit | 2cc9053e108a649a302f5ecf0306b682d820d4e1 (patch) | |
| tree | c10f3151e75c5b0bbf0f9a540527e7b6748b7603 /volume/volume.go | |
| parent | 31605150d3e10b08dad2086005c64664f5648a51 (diff) | |
| download | volute-staging.zip | |
use gio for uistaging
Diffstat (limited to 'volume/volume.go')
| -rw-r--r-- | volume/volume.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/volume/volume.go b/volume/volume.go index e634b5d..4eb22fe 100644 --- a/volume/volume.go +++ b/volume/volume.go @@ -9,6 +9,10 @@ const ( CubicInch Volume = 16.38706 ) +func New(i float32, u Volume) Volume { + return Volume(i) * u +} + func (v Volume) As(unit Volume) float32 { return float32(v / unit) } |