From b4f0a950bf958ac1ed122b4bd45fdfb2c90c2957 Mon Sep 17 00:00:00 2001 From: Vincent Serpoul Date: Wed, 3 Feb 2021 21:48:53 +0800 Subject: [PATCH] Value string representation public function (#469) Fixes #468 --- tomltree_writepub.go | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tomltree_writepub.go diff --git a/tomltree_writepub.go b/tomltree_writepub.go new file mode 100644 index 00000000..fa326308 --- /dev/null +++ b/tomltree_writepub.go @@ -0,0 +1,6 @@ +package toml + +// ValueStringRepresentation transforms an interface{} value into its toml string representation. +func ValueStringRepresentation(v interface{}, commented string, indent string, ord MarshalOrder, arraysOneElementPerLine bool) (string, error) { + return tomlValueStringRepresentation(v, commented, indent, ord, arraysOneElementPerLine) +}