Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
philippgille committed Jan 21, 2024
1 parent b846fda commit 0c327bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ This repository contains the subpackage `encoding`, which is an abstraction and

- [X] JSON
- [X] [gob](https://blog.golang.org/gobs-of-data)
- [X] [proto](https://pkg.go.dev/google.golang.org/protobuf/proto)
- [X] [protobuf](https://pkg.go.dev/google.golang.org/protobuf)

More formats will be supported in the future (e.g. XML).

Expand All @@ -132,7 +132,7 @@ Differences between the formats:
- Depending on the use case, the custom (un-)marshal methods of one of the formats might be easier to implement
- JSON: [`MarshalJSON() ([]byte, error)`](https://pkg.go.dev/encoding/json#Marshaler) and [`UnmarshalJSON([]byte) error`](https://pkg.go.dev/encoding/json#Unmarshaler)
- gob: [`GobEncode() ([]byte, error)`](https://pkg.go.dev/encoding/gob#GobEncoder) and [`GobDecode([]byte) error`](https://pkg.go.dev/encoding/gob#GobDecoder)
- proto: [`Marshal(proto.Message) ([]byte, error)`](https://pkg.go.dev/google.golang.org/protobuf/proto#Marshal) and [`Unmarshal([]byte, proto.Message) error`](https://pkg.go.dev/google.golang.org/protobuf/proto#Unmarshal)
- protobuf: [`Marshal(proto.Message) ([]byte, error)`](https://pkg.go.dev/google.golang.org/protobuf/proto#Marshal) and [`Unmarshal([]byte, proto.Message) error`](https://pkg.go.dev/google.golang.org/protobuf/proto#Unmarshal)

### Roadmap

Expand Down

0 comments on commit 0c327bb

Please sign in to comment.