Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit 2cb6498

Browse files
committed
update README
1 parent e9a3b9a commit 2cb6498

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ You can serialize and deserialize the following basic types:
2929
- bool
3030
- int8, int16, int32, int64, uint8, uint16, uint32, uint64
3131
- string
32-
- slice, array, map
32+
- slice, map
3333

3434
```golang
3535
bytes, _ := lcs.Marshal("hello")
@@ -81,11 +81,14 @@ type MyStruct struct {
8181

8282
### Fixed length lists
8383

84-
Fixed length lists are supported as member of structs with "len" tag.
84+
Arrays are treated as fixed length lists.
85+
86+
You can also specify fixed length for struct members with `len` tag. Slices and strings are supported.
8587

8688

8789
```golang
8890
type MyStruct struct {
91+
Str string `lcs:"len=2"`
8992
Bytes []byte `lcs:"len=4"`
9093
OptionalBytes []byte `lcs:"len=4,optional"`
9194
}

0 commit comments

Comments
 (0)