Last active
October 26, 2018 16:57
-
-
Save shdblowers/14e5479315d17da58ec7802c947847ab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule JSONPrinter do | |
use FilePrinter | |
@behaviour FilePrinter | |
@impl FilePrinter | |
def parse(str), do: {:ok, "some json " <> str} # ... parse JSON | |
@impl FilePrinter | |
def extensions, do: ["json"] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment