fix problem with quotations

main
Ajitem Sahasrabuddhe 5 years ago committed by GitHub
parent 4c4f52c2b7
commit ec94e0e667
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1215,7 +1215,7 @@ Using the timestamp flag is simple, You can look at time.Parse to get layout exa
<!-- {
"args": ["&#45;&#45;meeting", "2019-08-12T15:04:05"],
"output": "\"2019-08-12 15:04:05 +0000 UTC\""
"output": "2019-08-12 15:04:05 +0000 UTC"
} -->
``` go
package main
@ -1234,7 +1234,7 @@ func main() {
&cli.TimestampFlag{Name: "meeting", Layout: "2006-01-02T15:04:05"},
},
Action: func(c *cli.Context) error {
fmt.Printf("%#v",c.Timestamp("meeting").String())
fmt.Printf("%v",c.Timestamp("meeting").String())
return nil
},
}

Loading…
Cancel
Save