Commit Graph

24 Commits

Author SHA1 Message Date
jackspirou
e90961f0c4 adding back default statements and adding comments and cleanups 2016-08-30 19:44:50 -04:00
jackspirou
c52a308c2c adding unit tests for ToStringMapString and ToStringMapStringSlice methods 2016-08-30 19:44:50 -04:00
jackspirou
2948175698 adding ToStringMapStringSlice method 2016-08-30 19:44:49 -04:00
bep
416a2874d5 Add support for template.URL
Fixes #13
2016-08-30 19:44:49 -04:00
bep
d86932036e Make ToIntSliceE more flexible
Now it accepts any slice or array type that contains a type supported by ToIntE.

[close #12]
2016-08-30 19:44:49 -04:00
bep
2e56615389 Add ToIntSlice 2016-08-30 19:44:49 -04:00
Chance Zibolski
c329e483ad Add ToDuration 2016-08-30 19:44:49 -04:00
Chance Zibolski
c3249683e8 Use strings.Fields 2016-08-30 19:44:49 -04:00
Chance Zibolski
a20148645b ToStringSliceE: Support string values 2016-08-30 19:44:49 -04:00
spf13
548a8c7168 Add support for pointers to basic types 2016-08-30 19:44:48 -04:00
spf13
b4d70dd7f5 Add proper support for error -> string and Stringer -> string. 2016-08-30 19:44:48 -04:00
Derek Perkins
3efc767833 Defaulted .ToStringE to use reflection to find a stringer element 2016-08-30 19:44:48 -04:00
bep
168fa9c54b Add support for HTML to String 2016-08-30 19:44:48 -04:00
txgruppi
c57ccf8bbe Updated to return bool false only for zero 2016-08-30 19:44:48 -04:00
bep
ba8259276f Add ToStringMapBool
ToStringMapBool is useful for a map of flags in a configuration file.
2016-08-30 19:44:48 -04:00
Asdine El Hrychy
476d66eae2 Removed forgotten fmt.Println("here") 2016-08-30 19:44:48 -04:00
Romain Baugue
211a300832 Added ToBool case for string, and added ToBool test cases 2016-08-30 19:44:47 -04:00
spf13
e7a65d0aba Adding ToSlice 2016-08-30 19:44:47 -04:00
spf13
9aa4c620a8 Caste now returns error instead of bool. 2016-08-30 19:44:47 -04:00
spf13
cc8bb26ffd Handling another case (map[string]interface{}) 2016-08-30 19:44:47 -04:00
spf13
6f7297ca1b adding Int to Float. Testing for float 2016-08-30 19:44:47 -04:00
spf13
61ff8bf802 Handling complex cases where input matches expected output 2016-08-30 19:44:47 -04:00
spf13
f83bf57543 Writing the README. Handling a few more cases, adding more tests. 2016-08-30 19:44:46 -04:00
spf13
f26a74dd99 initial commit of library & tests 2016-08-30 19:44:46 -04:00