From 7dd8158eb56971996d08d343c51c4e0e72b092ea Mon Sep 17 00:00:00 2001 From: Matias Insaurralde Date: Thu, 23 Nov 2023 05:42:52 +0000 Subject: [PATCH] Add syntax highlighting to the README --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index c7736c0..6e31376 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ slightly inspired by http get with retry: +```go url := "http://example.com" var body []byte @@ -40,9 +41,11 @@ http get with retry: } fmt.Println(string(body)) +``` http get with retry with data: +```go url := "http://example.com" body, err := retry.DoWithData( @@ -65,6 +68,7 @@ http get with retry with data: } fmt.Println(string(body)) +``` [next examples](https://github.com/avast/retry-go/tree/master/examples)