Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

pkg/yaml: updated for strconv API changes.

  • Loading branch information...
commit b6daa2ae79a7fc4c9ffde98f81bcea1844b7dc1d 1 parent 18cb451
@tav authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/amp/pkg/yaml/yaml.go
View
4 src/amp/pkg/yaml/yaml.go
@@ -74,7 +74,7 @@ func setValue(elem *Elem, value string) {
elem.String = value[1 : valueLength-1]
} else if match, floatesque := matchNumber(value); match {
if floatesque {
- floatval, err := strconv.Atof64(value)
+ floatval, err := strconv.ParseFloat(value, 64)
if err == nil {
elem.Type = Float
elem.Float = floatval
@@ -83,7 +83,7 @@ func setValue(elem *Elem, value string) {
elem.String = value
}
} else {
- intval, err := strconv.Atoi64(value)
+ intval, err := strconv.ParseInt(value, 10, 64)
if err == nil {
elem.Type = Int
elem.Int = intval
Please sign in to comment.
Something went wrong with that request. Please try again.