Skip to content

Commit a1f65a0

Browse files
committed
docs: add Float64 -> Float
1 parent ef2b145 commit a1f65a0

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

docs/migrate-v2-to-v3.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,40 @@ Shell command to find them all: `fgrep -rl github.com/urfave/cli/v2 *`
129129
}
130130
```
131131

132+
### cli.Float64Flag
133+
134+
=== "v2"
135+
136+
```go
137+
cli.Float64Flag{
138+
// ...
139+
}
140+
```
141+
142+
=== "v3"
143+
144+
```go
145+
cli.FloatFlag{
146+
// ...
147+
}
148+
```
149+
150+
### cli.Context.Float64
151+
152+
=== "v2"
153+
154+
```go
155+
// ctx is cli.Context
156+
ctx.Float64("my-floating-flag")
157+
```
158+
159+
=== "v3"
160+
161+
```go
162+
// cmd is cli.Command
163+
cmd.Float("my-floating-flag")
164+
```
165+
132166
## Sources
133167

134168
### FilePath

0 commit comments

Comments
 (0)