diff options
author | Louis Pilfold <louis@lpil.uk> | 2022-01-09 22:41:58 +0000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2022-01-09 22:41:58 +0000 |
commit | 089f29823bc3ed25ae7b4fed64c88e981a872b64 (patch) | |
tree | 3db586f12de21d6231d65577bca3e020b1d817ed /README.md | |
parent | 535bf8d4057bc6d42537903e9cb2357fd2bfd52d (diff) | |
download | gleam_json-089f29823bc3ed25ae7b4fed64c88e981a872b64.tar.gz gleam_json-089f29823bc3ed25ae7b4fed64c88e981a872b64.zip |
Remove unused imports from example
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -17,7 +17,6 @@ gleam add gleam_json ```rust import myapp.{Cat} -import gleam/list import gleam/json.{object, string, list, int, null} pub fn cat_to_json(cat: Cat) -> String { @@ -40,7 +39,6 @@ JSON is decoded into a `Dynamic` value which can be decoded using the import myapp.{Cat} import gleam/json import gleam/dynamic.{field, list, int, string} -import gleam/result pub fn cat_from_json(json_string: String) -> Result<Cat, json.DecodeError> { let cat_decoder = dynamic.decode3( |