Fatih Arslan
|
6dd7cda522
|
structs: add omitempty support to Values()
|
2014-09-15 12:39:09 +03:00 |
|
Fatih Arslan
|
431c57536b
|
Merge pull request #19 from fatih/omitempty
Add omitempty tag option.
|
2014-09-14 20:49:23 +03:00 |
|
Fatih Arslan
|
782d098eb6
|
structs: add omitempty test
|
2014-09-14 20:43:08 +03:00 |
|
Fatih Arslan
|
9c8bc21e6a
|
structs: add omitempty tag option
Doesn't add it to the final result if the field value is a zero value
|
2014-09-14 13:56:50 +03:00 |
|
Fatih Arslan
|
8624dc5ae3
|
field: fix setting pointers. Closes ##16
|
2014-09-10 01:41:11 +03:00 |
|
Fatih Arslan
|
ebbcf66cbe
|
readme: add example about field fields
|
2014-08-17 20:32:57 +03:00 |
|
Fatih Arslan
|
db46c5303b
|
field: increase coverage of Set() method
|
2014-08-17 13:05:47 +03:00 |
|
Fatih Arslan
|
bb0405ceab
|
field: get underlying element if pointer
|
2014-08-17 12:57:22 +03:00 |
|
Fatih Arslan
|
1c1b7ed9a8
|
Merge pull request #14 from cihangir/fields
Structs: added Fields() method into Field struct for listing all the Fie...
|
2014-08-17 12:55:47 +03:00 |
|
Cihangir SAVAS
|
995f03a605
|
Structs: fix documentation
|
2014-08-17 02:53:47 -07:00 |
|
Cihangir SAVAS
|
852670f7c6
|
Structs: added Fields() method into Field struct for listing all the Fields of the given field if it is a struct.
|
2014-08-17 02:39:19 -07:00 |
|
Fatih Arslan
|
8292271263
|
field: add Kind() method
|
2014-08-15 12:39:28 +03:00 |
|
Fatih Arslan
|
add65496af
|
field: add Set() method for setting fields
|
2014-08-15 12:26:36 +03:00 |
|
Fatih Arslan
|
747a05cbb4
|
Update .travis coveralls token
|
2014-08-13 22:56:11 +03:00 |
|
Fatih Arslan
|
f3d3802cda
|
structure -> structs renaming
|
2014-08-13 22:53:15 +03:00 |
|
Fatih Arslan
|
548248a457
|
field: fix doc typo
|
2014-08-12 11:29:05 +03:00 |
|
Fatih Arslan
|
5e0c20298b
|
Merge pull request #11 from fatih/struct
struct and field: two new types for a more advanced struct controlling
|
2014-08-11 04:22:45 +03:00 |
|
Fatih Arslan
|
353ac3c164
|
Readme: small typo
|
2014-08-11 04:17:19 +03:00 |
|
Fatih Arslan
|
d06e3eb5fe
|
structure: improve examples
|
2014-08-11 04:15:58 +03:00 |
|
Fatih Arslan
|
1c91005c39
|
structure: more improvements
|
2014-08-11 03:53:35 +03:00 |
|
Fatih Arslan
|
f614213600
|
struct: increase coverage back to %100
|
2014-08-11 01:52:22 +03:00 |
|
Fatih Arslan
|
3bd57b6a66
|
field: add a method to get nested fields back
|
2014-08-11 01:00:39 +03:00 |
|
Fatih Arslan
|
a92e1f9f8d
|
field: cover all cases for fields
|
2014-08-11 00:51:56 +03:00 |
|
Fatih Arslan
|
84a0f611c7
|
more tests, additional methods for fields
|
2014-08-10 16:42:04 +03:00 |
|
Fatih Arslan
|
d5c544c4f6
|
field: add tests for fields, WIP
|
2014-08-10 16:05:37 +03:00 |
|
Fatih Arslan
|
53f565ab3e
|
field: add IsEmbedded and fix doc about Value()
|
2014-08-10 15:53:25 +03:00 |
|
Fatih Arslan
|
fe137c012f
|
structure: add constructor to provide a more advanced functions around
structs
|
2014-08-10 15:47:04 +03:00 |
|
Fatih Arslan
|
50c639fd56
|
structure: golint and govet improvements
|
2014-08-08 15:38:40 +03:00 |
|
Fatih Arslan
|
091a0feb9b
|
travis: add coverage
|
2014-08-08 14:06:49 +03:00 |
|
Fatih Arslan
|
f59cd82529
|
tags: simplify parseTag, no need for len checking
|
2014-08-08 13:45:04 +03:00 |
|
Fatih Arslan
|
74f7a1f303
|
tags_test: include empty tag case
|
2014-08-08 13:32:35 +03:00 |
|
Fatih Arslan
|
563e458c93
|
structure_test: cover panicing of Name()
|
2014-08-08 12:53:38 +03:00 |
|
Fatih Arslan
|
76f7c2b740
|
Merge pull request #10 from fatih/tags
structure: stop parsing nested structures via field tag
|
2014-08-08 12:42:00 +03:00 |
|
Fatih Arslan
|
b10a55eb0c
|
structure: clarifiy docs and add examples for omitnested tag option
|
2014-08-08 12:39:25 +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
|
fc5199c8cc
|
tags: parse tag names and options
|
2014-08-07 18:17:41 +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
|
13b7095115
|
Update README.md
|
2014-08-05 17:01:25 +03: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
|
69a6a30d8e
|
Update README.md
|
2014-08-04 00:49:29 +03:00 |
|
Fatih Arslan
|
dc92ad5a15
|
Update readme.md
|
2014-08-03 22:23:57 +03:00 |
|
Fatih Arslan
|
0bde053c03
|
Update README.md
|
2014-08-03 22:23:08 +03:00 |
|