Go strings and input
Clean up names, compare codes, and read quantities from a form.
Inspect text and Unicode
- lenCheck for an untouched delivery note
- lenCheck the length of a parcel code
- string sliceRead the seat row
- strings.TrimSpaceCheck an attendance comment
- utf8.RuneCountInStringCount symbols in an attendance reaction
Find and compare
- string equalityVerify a locker code
- string orderingOrder two shelf areas
- strings.ContainsFind a word on a shelf label
- strings.EqualFoldMatch a booking code regardless of letter case
- strings.HasPrefixRecognize an invoice prefix
- strings.HasSuffixFind filenames with a receipt extension
- strings.IndexLocate the hyphen in a classroom code
- strings.LastIndexFind the final dot in an archive name
Clean and replace
- strings.ReplaceAllPrint a shelf code with readable separators
- strings.ToLowerNormalize a course tag
- strings.ToUpperStandardize an airport code
- strings.TrimLeftAlign a pasted seat label
- strings.TrimRightKeep the indentation of a timetable
- strings.TrimSpaceClean up a copied booking code
Split, join, and extract
- string concatenationAttach a seat number to a row
- string sliceRead a department on a semester timetable
- strings.JoinPrint a campus shuttle route
- strings.SplitCount handover tasks
- strings.SplitCount stops in a shuttle record
Format and convert
- fmt.SprintfPrint a student badge
- len (UTF-8 bytes)Measure a café line on a receipt
- strings.RepeatDraw three completed checkpoints