From fa5fe315f85333e5e7dc0b2147cbe3aae3e4afce Mon Sep 17 00:00:00 2001 From: Illia Volochii Date: Tue, 1 May 2018 12:02:44 +0300 Subject: Change format from JSON to CSV --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 362f455..8980ba1 100644 --- a/README.md +++ b/README.md @@ -94,8 +94,7 @@ $ NUM_WORKERS=4 ./example Workers: 4 ``` -You should use a JSON array of strings (value will be converted if -necessary) in the case of multiple values: +You can provide multiple values using the CSV (RFC 4180) format: ```go var args struct { @@ -106,7 +105,7 @@ fmt.Println("Workers:", args.Workers) ``` ``` -$ WORKERS='["1", "99"]' ./example +$ WORKERS='1,99' ./example Workers: [1 99] ``` -- cgit v1.2.3