https://github.com/isensee-bastian/text-stats
Tutorial code for my video Learn to Use Basic Data Structures - Slices, Structs and Maps in Golang
https://github.com/isensee-bastian/text-stats
basic-programming beginners-tutorial-series golang learn-to-code list map slice struct text youtube
Last synced: about 1 month ago
JSON representation
Tutorial code for my video Learn to Use Basic Data Structures - Slices, Structs and Maps in Golang
- Host: GitHub
- URL: https://github.com/isensee-bastian/text-stats
- Owner: isensee-bastian
- License: mit
- Created: 2022-01-26T18:56:36.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-26T19:21:03.000Z (over 4 years ago)
- Last Synced: 2025-04-02T21:43:16.213Z (about 1 year ago)
- Topics: basic-programming, beginners-tutorial-series, golang, learn-to-code, list, map, slice, struct, text, youtube
- Language: Go
- Homepage: https://youtu.be/bsQj4SqirU8
- Size: 69.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Learn to Use Basic Data Structures - Slices, Structs and Maps in Golang
* Read text from a file and split into words.
* Introduction to slices / lists.
* Count total number of words (len function).
* Read text from the terminal.
* Get count of a specific word by searching.
* Cleanup and normalize strings (ReplaceAll, ToLower, Peek at regexes).
* Introduction to structs.
* Get count for every word by using a naive search approach.
* Sort elements in a slice / list.
* Introduction to maps.
* Get count for every word by using an efficient lookup approach.
* Use time package for measuring processing duration.
Sample input text in txt files is from: https://en.wikipedia.org/wiki/Cheese