An open API service indexing awesome lists of open source software.

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

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