We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37eff32 commit 876cad6Copy full SHA for 876cad6
1 file changed
README.md
@@ -219,6 +219,9 @@ As of Version 1, supported field types are
219
(e.g. `type RFC791InternetHeaderPrecedence uint8`)
220
having the above underlying types are compatible.
221
222
+A word struct cannot be marshalled/unmarshalled by itself;
223
+it must be a field in a format struct, explained below.
224
+
225
##### Offset
226
`<offset>` is an integer
227
representing the number of places the bit field should be shifted left
@@ -246,6 +249,9 @@ type RFC791InternetHeaderFormatWithoutOptions struct {
246
249
}
247
250
```
248
251
252
+`Marshal()` and `Unmarshal()` expect a pointer to a format struct
253
+as an argument.
254
255
### Example
256
```go
257
package main
0 commit comments