From a8751cee5a55e6fe358d0ff02d03aa7e27910079 Mon Sep 17 00:00:00 2001 From: alvaroloes Date: Thu, 31 Dec 2015 14:41:41 +0000 Subject: [PATCH] Updated README with syntax highlighting for Go snippets --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 749bb92..821709c 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ from a REST API request... In short, from those places where using the real enum be almost meaningless or hard to trace or use by a human For example, if we have an enum type called `Pill`, -``` +```go type Pill int const ( @@ -20,7 +20,7 @@ const ( ) ``` executing `enumer -type=Pill` will generate a new file with two methods: -``` +```go func (i Pill) String() string { //... } @@ -30,7 +30,7 @@ func PillString(s string) (Pill, error) { } ``` From now on, we can: -``` +```go // Convert any Pill value to string var aspirinString string = Aspirin.String() // (or use it in any place where a Stringer is accepted)