summaryrefslogtreecommitdiff
path: root/vendor/github.com/goccy/go-json/option.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/goccy/go-json/option.go')
-rw-r--r--vendor/github.com/goccy/go-json/option.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/github.com/goccy/go-json/option.go b/vendor/github.com/goccy/go-json/option.go
index af400a452..378031a08 100644
--- a/vendor/github.com/goccy/go-json/option.go
+++ b/vendor/github.com/goccy/go-json/option.go
@@ -48,6 +48,13 @@ func DebugWith(w io.Writer) EncodeOptionFunc {
}
}
+// DebugDOT sets the destination to write opcodes graph.
+func DebugDOT(w io.WriteCloser) EncodeOptionFunc {
+ return func(opt *EncodeOption) {
+ opt.DebugDOTOut = w
+ }
+}
+
// Colorize add an identifier for coloring to the string of the encoded result.
func Colorize(scheme *ColorScheme) EncodeOptionFunc {
return func(opt *EncodeOption) {