From a8105951862d090da8e7c3de1ac7835e99096d68 Mon Sep 17 00:00:00 2001 From: Elara Musayelyan Date: Tue, 22 Aug 2023 21:08:50 -0700 Subject: [PATCH] Use the new scalarliterals option for repr --- cmd/tafparser/main.go | 2 +- go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/tafparser/main.go b/cmd/tafparser/main.go index 23108e6..5399a48 100644 --- a/cmd/tafparser/main.go +++ b/cmd/tafparser/main.go @@ -58,7 +58,7 @@ func main() { } if *printGo { - repr.Println(fc) + repr.New(os.Stdout, repr.ScalarLiterals()).Println(fc) } else { enc := json.NewEncoder(os.Stdout) if *pretty { diff --git a/go.mod b/go.mod index e5527f7..d6eb33d 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21.0 require ( github.com/alecthomas/participle/v2 v2.0.0 - github.com/alecthomas/repr v0.2.0 + github.com/alecthomas/repr v0.2.1-0.20230822000955-cded7b9e5c50 github.com/go-test/deep v1.1.0 github.com/spf13/pflag v1.0.5 go.elara.ws/logger v0.0.0-20230421022458-e80700db2090 diff --git a/go.sum b/go.sum index 94d6bbc..f2fa64b 100644 --- a/go.sum +++ b/go.sum @@ -2,8 +2,8 @@ github.com/alecthomas/assert/v2 v2.2.2 h1:Z/iVC0xZfWTaFNE6bA3z07T86hd45Xe2eLt6WV github.com/alecthomas/assert/v2 v2.2.2/go.mod h1:pXcQ2Asjp247dahGEmsZ6ru0UVwnkhktn7S0bBDLxvQ= github.com/alecthomas/participle/v2 v2.0.0 h1:Fgrq+MbuSsJwIkw3fEj9h75vDP0Er5JzepJ0/HNHv0g= github.com/alecthomas/participle/v2 v2.0.0/go.mod h1:rAKZdJldHu8084ojcWevWAL8KmEU+AT+Olodb+WoN2Y= -github.com/alecthomas/repr v0.2.0 h1:HAzS41CIzNW5syS8Mf9UwXhNH1J9aix/BvDRf1Ml2Yk= -github.com/alecthomas/repr v0.2.0/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4= +github.com/alecthomas/repr v0.2.1-0.20230822000955-cded7b9e5c50 h1:LYrljCGKIk9IpO5wrbUqzM59sCmK9MIZ7VDK8tidRGs= +github.com/alecthomas/repr v0.2.1-0.20230822000955-cded7b9e5c50/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/go-test/deep v1.1.0 h1:WOcxcdHcvdgThNXjw0t76K42FXTU7HpNQWHpA2HHNlg=