- Install zsh + oh-my-zsh
- Install Starship
- Run
mkdir -p ~/.config && nano ~/.config/starship.toml - Paste the starship.toml configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ( | |
| "errors" | |
| "strconv" | |
| "sync" | |
| ) | |
| // ConcAtoI converst each element of a string slice to number concurrently. | |
| // If some element cannot be converted, the functions exits and return the error. | |
| // The function uses waitgroup, done and error channels. | |
| func ConcAtoI(a []string) error { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ( | |
| "errors" | |
| "strconv" | |
| "sync" | |
| ) | |
| // ConcSumAtoI calculates the numerical sum of a given slice of strings concurrently. | |
| // If some element cannot be converted to numeric, the function exits and returns the error. | |
| // The function uses waitgroup, done and error channels and a mutex for the sum. | |
| func ConcSumAtoI(a []string) (*int, error) { |
