Skip to content

Commit

Permalink
Add a mention of the 'byte slice' type to the README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ymz-ncnk committed Jan 23, 2025
1 parent 87f0eaa commit 023a7a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ More details about Varint and Raw encodings can be found in the
If in doubt, use Varint.

## ord (ordinary) Package
Supports the following data types: `bool`, `string`, `slice`, `map`, and
pointers.
Supports the following data types: `bool`, `string`, `slice`, `byte slice`,
`map`, and pointers.

Variable-length data types (like `string`, `slice`, or `map`) are encoded as:
`length + data`. You can choose binary representation for both of these parts.
Expand Down Expand Up @@ -185,8 +185,8 @@ unmarshalling will also change the string’s contents. Here is an
[example](https://github.com/mus-format/mus-examples-go/blob/main/unasafe/main.go)
that demonstrates this behavior more clearly.

Supports the following data types: `bool`, `string`, `byte`, and all `uint`,
`int`, `float`.
Supports the following data types: `bool`, `string`, `byte slice`, `byte`, and
all `uint`, `int`, `float`.

## pm (pointer mapping) Package
Let's consider the following struct:
Expand Down

0 comments on commit 023a7a6

Please sign in to comment.