vendor: update 'dataframe' to handle other integer types

This commit is contained in:
Gyu-Ho Lee 2017-01-25 11:00:44 -08:00
parent 4e4f40fcd0
commit 0638bcef33
No known key found for this signature in database
GPG Key ID: 1DDD39C7EB70C24C
3 changed files with 11 additions and 5 deletions

6
glide.lock generated
View File

@ -1,5 +1,5 @@
hash: 05f0491c2f47ba84f8c96ae53d37d2b74fc396fadd6b009a602e490b2977468d
updated: 2017-01-24T12:04:10.726202771-08:00
hash: 64d97bc0735b6db13c765596719ecf1409993a7c6f881480a7c7c09106dc9d0a
updated: 2017-01-25T11:00:18.68845449-08:00
imports:
- name: bitbucket.org/zombiezen/gopdf
version: 1c63dc69751bc45441c2ce1f56b631c55294b4d5
@ -95,7 +95,7 @@ imports:
- runtime/internal
- utilities
- name: github.com/gyuho/dataframe
version: 0654e1bff71a2c46f30d603f30b3621dd599ec50
version: 70365cbdcfbc465e03a6ec703137d6da35ef8e9b
- name: github.com/gyuho/psn
version: 2877cb3cb574ed37efd271cb0c64938796d5a0af
subpackages:

View File

@ -52,7 +52,7 @@ import:
- vg/vgpdf
- vg/vgsvg
- package: github.com/gyuho/dataframe
version: 0654e1bff71a2c46f30d603f30b3621dd599ec50
version: 70365cbdcfbc465e03a6ec703137d6da35ef8e9b
- package: github.com/gyuho/psn
version: 2877cb3cb574ed37efd271cb0c64938796d5a0af
- package: github.com/hashicorp/consul

View File

@ -36,6 +36,12 @@ func NewStringValue(v interface{}) Value {
return String(t)
case int:
return String(strconv.FormatInt(int64(t), 10))
case int64:
return String(strconv.FormatInt(t, 10))
case uint:
return String(strconv.FormatUint(uint64(t), 10))
case uint64:
return String(strconv.FormatUint(t, 10))
case float64:
return String(strconv.FormatFloat(t, 'f', -1, 64))
case time.Time:
@ -43,7 +49,7 @@ func NewStringValue(v interface{}) Value {
case time.Duration:
return String(t.String())
default:
panic(fmt.Errorf("%v is not supported", v))
panic(fmt.Errorf("%v(%T) is not supported", v, v))
}
return nil
}