package
0.21.0
Repository: https://go.googlesource.com/text
Documentation: pkg.go.dev

# Packages

Package bitfield converts annotated structs into integer values.

# Functions

CLDRVersion reports the requested CLDR version.
Init performs common initialization for a gen command.
IsLocal reports whether data files are available locally.
NewCodeWriter returns a new CodeWriter.
Open opens subdir/path if a local directory is specified and the file exists, where subdir is a directory relative to the local root, or fetches it from urlRoot/path otherwise.
OpenCLDRCoreZip opens the CLDR core zip file.
OpenIANAFile opens the requested IANA file.
OpenUCDFile opens the requested UCD file.
OpenUnicodeFile opens the requested file of the requested category from the root of the Unicode data archive.
Repackage rewrites a Go file from belonging to package main to belonging to the given package.
UnicodeVersion reports the requested Unicode version.
WriteCLDRVersion writes a constant for the CLDR version from which the tables are generated.
WriteGo prepends a standard file comment and package statement to the given bytes, applies gofmt, and writes them to w.
WriteGoFile prepends a standard file comment and package statement to the given bytes, applies gofmt, and writes them to a file with the given name.
WriteUnicodeVersion writes a constant for the Unicode version from which the tables are generated.
WriteVersionedGoFile prepends a standard file comment, adds build tags to version the file for the current Unicode version, and package statement to the given bytes, applies gofmt, and writes them to a file with the given name.

# Structs

CodeWriter is a utility for writing structured code.