diff --git a/tape/tag.go b/tape/tag.go index b32898d..9a89f38 100644 --- a/tape/tag.go +++ b/tape/tag.go @@ -54,6 +54,11 @@ func BufferTag(value []byte) Tag { return bufferLenTag(len(value)) } +// StringTag returns the appropriate tag for a string. +func StringTag(value string) Tag { + return bufferLenTag(len(value)) +} + func bufferLenTag(length int) Tag { if length < int(CNLimit) { return SBA.WithCN(length)