Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
§3.1. Literals, Operators, and Escapes
83
§3.3. Characters and Strings
87
§3.4. Indexing and Slicing Strings
90
§3.5. String Formatting with the Fmt Package
93
§3.5.1. Formatting Booleans
97
§3.5.2. Formatting Integers
98
§3.5.3. Formatting Characters
99
§3.5.4. Formatting Floating-Point Numbers
100
§3.6. Other String-Related Packages
106
§3.6.1. The Strings Package
107
§3.6.2. The Strconv Package
113
This chapter covers Go’s string type and key string-related packages from the standard library. The chapter’s sections include coverage of how to write literal strings and use the string operators; how to index and slice (take substrings of) strings; and how to format the output of strings, numbers, and other built-in and custom types.