From 46d3e3fa4a5a2400f6055d4660625cfe3b06d735 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Mon, 4 Nov 2024 15:10:12 +0000 Subject: [PATCH] left align example snippets --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 9d5aeeb..43064ee 100644 --- a/README.md +++ b/README.md @@ -59,9 +59,9 @@ You may want to change the default timeout if some of your responses are getting For example: ```go - rcon, err := q3rcon.New( - host, port, password, - q3rcon.WithDefaultTimeout(50*time.Millisecond)) +rcon, err := q3rcon.New( + host, port, password, + q3rcon.WithDefaultTimeout(50*time.Millisecond)) ``` #### `WithTimeouts(timeouts map[string]time.Duration)` @@ -69,14 +69,14 @@ For example: Perhaps there are some requests that take a long time to receive a response but you want the whole response in one chunk. Pass a timeouts map, for example: ```go - timeouts := map[string]time.Duration{ - "map_rotate": 1200 * time.Millisecond, - "map_restart": 1200 * time.Millisecond, - } +timeouts := map[string]time.Duration{ + "map_rotate": 1200 * time.Millisecond, + "map_restart": 1200 * time.Millisecond, +} - rcon, err := q3rcon.New( - host, port, password, - q3rcon.WithTimeouts(timeouts)) +rcon, err := q3rcon.New( + host, port, password, + q3rcon.WithTimeouts(timeouts)) ``` ## Command line