From 4598abae77278af0a37080bbb16985fe06c3c221 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Tue, 13 Feb 2024 08:02:34 -0800 Subject: [PATCH] initial commits --- string.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 string.go diff --git a/string.go b/string.go new file mode 100644 index 0000000..4fad1fe --- /dev/null +++ b/string.go @@ -0,0 +1,10 @@ +package htmlescape + +func String(str string) string { + var buffer [bufferSize]byte + var p []byte = buffer[0:9] + + p, _ = AppendString(p, str) + + return string(p) +}