HTTP/2 200
content-security-policy: object-src 'none'; base-uri 'none'; script-src 'unsafe-inline' 'strict-dynamic' https: http: 'sha256-DVdvl49HC0iGx/YKQq/kVNATnEdzGfExbJVTHqT95l8=' 'sha256-CoGrkqEM1Kjjf5b1bpcnDLl8ZZLAsVX+BoAzZ5+AOmc=' 'sha256-QqhlxKosyquihHG/Jahbski3BB1pDss2/CDgLzKKbmE=' 'sha256-karKh1IrXOF1g+uoSxK+k9BuciCwYY/ytGuQVUiRzcM=' 'sha256-mxm3e8M0u3nPPBmLIBgGuMvGUIL5LGv+HzV3bLAIBgw=' 'sha256-+iS8jRq15Ez/Kzz0/G+SNc0geLNvTyf2NZC7MyJgpRE=' 'sha256-UiVwSVJIK9udADqG5GZe+nRUXWK9wEot2vrxL4D2pQs=' 'sha256-cB+y/oSfWGFf7lHk8KX+ZX2CZQz/dPamIICuPvHcB6w=' 'sha256-7mi5SPcD1cogj2+ju8J/+/qJG99F6Qo+3pO4xQkRf6Q=' 'sha256-rEbn/zvLCsDDvDrVWQuUkKGEQsjQjFvIvJK4NVIMqZ4='
x-content-type-options: nosniff
x-frame-options: deny
content-type: text/html; charset=utf-8
date: Wed, 16 Jul 2025 02:17:34 GMT
server: Google Frontend
via: 1.1 google
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
Discover Packages
Standard library
internal
coverage
stringtab
package
standard library
Version:
go1.24.5
Opens a new window with list of versions in this module.
Published: Jul 8, 2025
License: BSD-3-Clause
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Reader is a helper for reading a string table previously
serialized by a Writer.Write call.
NewReader creates a stringtab.Reader to read the contents
of a string table from 'r'.
Entries returns the number of decoded entries in a string table.
Get returns string 'idx' within the string table.
Read reads/decodes a string table using the reader provided.
Writer implements a string table writing utility.
Freeze sends a signal to the writer that no more additions are
allowed, only lookups of existing strings (if a lookup triggers
addition, a panic will result). Useful as a mechanism for
"finalizing" a string table prior to writing it out.
func (stw *Writer ) InitWriter()
InitWriter initializes a stringtab.Writer.
Lookup looks up string 's' in the writer's table, adding
a new entry if need be, and returning an index into the table.
Nentries returns the number of strings interned so far.
Size computes the memory in bytes needed for the serialized
version of a stringtab.Writer.
Write writes the string table in serialized form to the specified
io.Writer.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.