33 Commits

Author SHA1 Message Date
Fatih Arslan
563e458c93 structure_test: cover panicing of Name() 2014-08-08 12:53:38 +03:00
Fatih Arslan
1b32eb1316 structure: add omitnested support to IsZero and HasZero 2014-08-08 11:49:06 +03:00
Fatih Arslan
72596462dd structure: add omitnested support to Fields 2014-08-07 22:18:04 +03:00
Fatih Arslan
eacf1a7590 structure: add omitnested support to values 2014-08-07 21:57:51 +03:00
Fatih Arslan
137635f5eb structure: add omitnested feature to Map 2014-08-07 21:23:01 +03:00
Fatih Arslan
792cad134c Merge branch 'master' of https://github.com/fatih/structure 2014-08-07 11:09:46 +03:00
Fatih Arslan
e34cf80acb structure: fix mixed up indexes, fixes #8. Thanks @yrashk for reporting 2014-08-07 11:09:05 +03:00
Fatih Arslan
5715a69d09 Merge pull request #7 from smallfish/master
support custom struct's field tag name
2014-08-05 18:39:49 +03:00
smallfish
b673565392 update custom struct's field tag name use package var, remove setter/reset func 2014-08-05 22:45:42 +08:00
Fatih Arslan
241e969210 structure: add IsZero() back that checks all fields 2014-08-05 16:54:01 +03:00
smallfish
b334b6a03f support custom struct's field tag name 2014-08-05 21:43:46 +08:00
Fatih Arslan
301494b442 structure: rename IsZero to HasZero
This reflect the intention of this function much better. Suggestion is
from golang-nuts.
2014-08-05 16:28:49 +03:00
Fatih Arslan
a1706cf168 Remove Implements 2014-08-02 01:02:04 +03:00
Fatih Arslan
816e3846a4 structure: add Implements method 2014-07-31 11:46:39 +03:00
Fatih Arslan
31b952e111 structure: Add Has() method, fix IsZero() 2014-07-30 22:01:18 +03:00
Fatih Arslan
e68f708c4c Improve tests 2014-07-30 21:24:28 +03:00
Fatih Arslan
4875a9916b structure: check for pointer structs 2014-07-30 21:17:46 +03:00
Fatih Arslan
778d3311fd strucuture: rename IsValid to IsZero 2014-07-30 21:10:26 +03:00
Fatih Arslan
0ec62843ec structure: add anonymous fields test, closes #5 2014-07-30 21:08:34 +03:00
Fatih Arslan
4d9abb0de1 structure: check for nested structs, closes #6 2014-07-30 18:49:46 +03:00
Fatih Arslan
0aaea945f5 structure: add Name() function 2014-07-30 17:43:09 +03:00
Fatih Arslan
af17259375 Convert ToSlice() to Values() 2014-07-29 23:07:59 +03:00
Fatih Arslan
32b1a23aeb structure: convert ToMap() to Map() 2014-07-29 23:01:00 +03:00
Fatih Arslan
b7140a415d structure: improve API docs and add test for IsValid() 2014-07-29 22:56:01 +03:00
Fatih Arslan
c36b654328 structure: add IsValid() function 2014-07-28 01:19:02 +03:00
Fatih Arslan
2d4d14a6c8 structure: add Fields() function, closes #4 2014-07-27 23:52:52 +03:00
Fatih Arslan
afdeeccc8b structure: remove returning error, it should panic just like reflect
package
2014-07-27 23:38:29 +03:00
Fatih Arslan
e8a7d20d51 structure: add ToSlice() , closes #3 2014-07-27 16:53:29 +03:00
Fatih Arslan
716932739a structure: add IsStruct() method 2014-07-27 14:48:26 +03:00
Fatih Arslan
38ea8fd0fc example: show examples in godoc 2014-07-26 17:58:05 +03:00
Fatih Arslan
d38308cd6b Add test for non struct 2014-07-26 17:46:48 +03:00
Fatih Arslan
c8876826eb structure: add travis, example and fix of pointer to struct 2014-07-26 17:41:27 +03:00
Fatih Arslan
ad2d6e3fe7 structure: first commit 2014-07-26 17:27:29 +03:00