Skip to content

Commit

Permalink
fix: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
jon4hz committed Jan 20, 2024
1 parent 4f61f06 commit 3102e07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ require (
github.com/lukesampson/figlet v0.0.0-20190211215653-8a3ef4a6ac42
github.com/shirou/gopsutil/v3 v3.21.12
github.com/spf13/viper v1.18.2
golang.org/x/exp v0.0.0-20230905200255-921286631fa9
golang.org/x/term v0.6.0
gopkg.in/ini.v1 v1.67.0
)
Expand Down Expand Up @@ -63,7 +64,6 @@ require (
github.com/yusufpapurcu/wmi v1.2.2 // indirect
go.uber.org/atomic v1.9.0 // indirect
go.uber.org/multierr v1.9.0 // indirect
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
golang.org/x/sync v0.5.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/text v0.14.0 // indirect
Expand Down
3 changes: 2 additions & 1 deletion styles/styles.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package styles

import (
"github.com/charmbracelet/lipgloss"
"golang.org/x/exp/constraints"
)

var (
Expand All @@ -13,7 +14,7 @@ var (
)

type Floatable interface {
int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64 | float32 | float64
constraints.Float | constraints.Integer
}

func ColorizeWithMax[T Floatable](x T, max T) lipgloss.Style {
Expand Down

0 comments on commit 3102e07

Please sign in to comment.