From 7ff5642f75f1b587e0668ff619641505ef3c124e Mon Sep 17 00:00:00 2001 From: John Taylor Date: Fri, 15 Mar 2024 09:16:47 -0400 Subject: [PATCH] syntax highlight go examples --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dbb41ab..19ef6bf 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ possible to integrate `exhaustive` with your own analysis driver program. Given an enum: -``` +```go package token // import "example.org/token" type Token int @@ -54,7 +54,7 @@ const ( and code that switches on the enum: -``` +```go package calc import "example.org/token" @@ -78,7 +78,7 @@ calc.go:6:2: missing cases in switch of type token.Token: token.Multiply, token. Specify flag `-check=switch,map` to additionally check exhaustiveness of keys in map literals. For example: -``` +```go var m = map[token.Token]rune{ token.Add: '+', token.Subtract: '-',