golib

module
v0.0.0-...-c4e6e5b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2023 License: BSD-2-Clause

README

Go Standard Library

Go Lang Programming Practice with Go Standard Library

Resources

The Go Standard Lib Document from http://go.dev
Go Standard Library Cookbook by Radomir Sohlich

Tools

VS Code
Go version: go 1.21.4
MacBook Pro M1 with MacOS: Sonoma 14.1.1

Directories

Path Synopsis
ch1
childpro
Retrieving child process information
Retrieving child process information
childpro1
Retrieving child process information
Retrieving child process information
env
expro
Calling an external process
Calling an external process
filecfg
File configuration with functional options
File configuration with functional options
ossignal
Handling operating system signals
Handling operating system signals
pid
readwrite
Reading/Writing from the child process
Reading/Writing from the child process
readwrite1
Reading/Writing from the child process
Reading/Writing from the child process
readwrite2
Reading/Writing from the child process
Reading/Writing from the child process
readwrite3
Reading/Writing from the child process
Reading/Writing from the child process
readwrite4
Reading/Writing from the child process
Reading/Writing from the child process
shutdown
Shutting down the application gracefully
Shutting down the application gracefully
ch2
fields
Breaking string into words
Breaking string into words
findsubstr
Find the substring in string
Find the substring in string
indenttext
Indenting a text document
Indenting a text document
joinstr
Join the String slice with separator
Join the String slice with separator
joinstr2
Join string slice with separator
Join string slice with separator
parsecsvstr
Parsing CSV (comma separated string) data
Parsing CSV (comma separated string) data
regexreplace
Finding the substring in text using regex pattern
Finding the substring in text using regex pattern
replaceall
Replacing all of the string with testStr.ReplaceAllString(s string, "Replacement string")
Replacing all of the string with testStr.ReplaceAllString(s string, "Replacement string")
replacer
Replace string using strings.NewReplacer(string)
Replace string using strings.NewReplacer(string)
replacestr
Replacing part of the string
Replacing part of the string
split
Splitting string on an instance of substring
Splitting string on an instance of substring
splitregex
Splitting string with the help of Regular Expression (regex)
Splitting string with the help of Regular Expression (regex)
strcapctrl
String Capitalization manipulation
String Capitalization manipulation
strcopy
Concatenating string using copy
Concatenating string using copy
strdecode
Decoding a string from the non-Unicode charset
Decoding a string from the non-Unicode charset
strencode
String encode
String encode
strwriter
Concatenating a string with writer
Concatenating a string with writer
tabwriter
Aligning text with tabwriter
Aligning text with tabwriter
whitespace
Managing whitespace in a string
Managing whitespace in a string
ch5
echo
Reading command-line input using bufio.NewScanner and os.Stdin
Reading command-line input using bufio.NewScanner and os.Stdin
fileseek
Seeking a position within a file
Seeking a position within a file
openfile
Opening a file by name
Opening a file by name
parsejson
Extracting data from an incomplete JSON array
Extracting data from an incomplete JSON array
parsexml
Parsing a large XML file effectively
Parsing a large XML file effectively
reader
Reading standard input
Reading standard input
readfile
Reading the file into a string
Reading the file into a string
rwbidata
Reading and writing binary data This example describes jpw tp write and read any type in the binary form.
Reading and writing binary data This example describes jpw tp write and read any type in the binary form.
rwdifcharset
Reading/Writing a different charset
Reading/Writing a different charset
rwpipe
Piping between writer and reader using io.Pipe()
Piping between writer and reader using io.Pipe()
rwzip
Reading and writing ZIP files
Reading and writing ZIP files
scanf
Standard input with Scanf
Standard input with Scanf
serialobj
Serializing objects to binary format
Serializing objects to binary format
stdouterr
Writing standout output and error
Writing standout output and error
wrmulwrter
Writing to multiple writer at onces When you need to write the same output into more than one target there is a helping hand available in the built-in package.
Writing to multiple writer at onces When you need to write the same output into more than one target there is a helping hand available in the built-in package.
ch6
chmod
Changing file permissions
Changing file permissions
comparefiles
Comparing files
Comparing files
createfile
Creating and writing to files
Creating and writing to files
crefiledir
Creating files and directories
Creating files and directories
fileinfo
Getting file information
Getting file information
filterfiles
Filtering file listings
Filtering file listings
listDir
Listing a directory
Listing a directory
synwrite
Writing the file from multiple goroutines
Writing the file from multiple goroutines
tempfile
Creating temporary files
Creating temporary files
userhomedir
Resolving the user home directory
Resolving the user home directory
ch7
resolveip
Resolving local IP addresses
Resolving local IP addresses

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL