M@
f5e28046c2
Add ToBoolSlice()
...
Fixes #1
2016-09-19 22:26:41 +02:00
Chih-Hung Yeh
d6087e9fee
Fixe ToDurationE()
...
It used to return zero valeus in some cases. The details are described
in [this issue](https://github.com/spf13/viper/issues/203 ). More cases
were also added in the unit test `TestToDuration()`
2016-09-19 22:24:24 +02:00
Feng
d0332e9ed2
FIx ToStringMapStringSliceE
...
* Update caste.go
bug fix
json config, for example:
{ "test" : ["abc", "123"] }
* update test
2016-09-19 22:22:46 +02:00
Bjørn Erik Pedersen
3aaefdbf6a
Add support for the other html template types
2016-03-14 20:20:28 +01:00
Matt Keller
9715267734
Add a ToInt64() and necessary plumbing
2016-03-14 20:19:19 +01:00
Matt Keller
a1423fc5cb
Add ability to cast int64's to strings
...
Resolves #18
2016-03-14 20:18:57 +01:00
Cyrill Schumacher
231a396cd1
Add bool case to ToStringE
2015-12-18 08:52:19 -05:00
Tyler Power
865ef5b570
Add int64 and float64 type coercion in ToDuration
2015-11-23 09:21:13 +13:00
jackspirou
5c45f385d3
adding unit tests for ToStringMapString and ToStringMapStringSlice methods
2015-08-03 12:36:12 -04:00
bep
630f70c55b
Add support for template.URL
...
Fixes #13
2015-08-03 12:35:39 -04:00
bep
d5fbab11ba
Make ToIntSliceE more flexible
...
Now it accepts any slice or array type that contains a type supported by ToIntE.
[close #12 ]
2015-05-08 15:17:42 -04:00
bep
aa9165b0a4
Add ToIntSlice
2015-02-24 12:08:11 -05:00
spf13
9590eb1aa4
Add support for pointers to basic types
2015-01-01 00:23:46 -05:00
spf13
0c3b98469e
Add proper support for error -> string and Stringer -> string.
2015-01-01 00:18:13 -05:00
bep
0f53950475
Add support for HTML to String
2014-12-09 09:02:27 -05:00
Steve Francia
5a39e85915
Merge pull request #5 from txgruppi/master
...
Updated to return bool false only for zero
2014-12-03 08:50:16 +01:00
txgruppi
5f1493bbb7
Updated to return bool false only for zero
2014-11-19 18:08:49 +00:00
bep
bbe2d4b35d
Add ToStringMapBool
...
ToStringMapBool is useful for a map of flags in a configuration file.
2014-11-06 11:32:02 +01:00
Romain Baugue
075c75a269
Added ToBool case for string, and added ToBool test cases
2014-09-08 12:15:23 -04:00
spf13
5a9b0d4cc3
adding Int to Float. Testing for float
2014-04-07 11:48:02 -04:00
spf13
559d57776b
Writing the README. Handling a few more cases, adding more tests.
2014-04-05 15:18:23 -04:00
spf13
6796452c69
initial commit of library & tests
2014-04-05 01:21:52 -04:00