refactor: add examples of chart
This commit is contained in:
parent
e558634dda
commit
4262b148ca
10 changed files with 796 additions and 100 deletions
8
util.go
8
util.go
|
|
@ -40,6 +40,14 @@ func FalseFlag() *bool {
|
|||
return &f
|
||||
}
|
||||
|
||||
func ceilFloatToInt(value float64) int {
|
||||
i := int(value)
|
||||
if value == float64(i) {
|
||||
return i
|
||||
}
|
||||
return i + 1
|
||||
}
|
||||
|
||||
func getDefaultInt(value, defaultValue int) int {
|
||||
if value == 0 {
|
||||
return defaultValue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue