https://github.com/noook/go-project
https://github.com/noook/go-project
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/noook/go-project
- Owner: noook
- Created: 2018-01-12T12:50:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-12T13:15:13.000Z (over 8 years ago)
- Last Synced: 2025-02-09T04:28:02.794Z (over 1 year ago)
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# golang-project
This is my first project in Golang. We had 3 things to do:
### Calculator
Make a program that takes for first argument in CLI the operator (+, -, *, /) and numbers separated by a space.
The program then makes the operation as follows:
`go run calc/calc.go + 4 6 2 7` will do `4 + 6 + 2+ 7` and return `19`
**Note :** To use the operator `*`, you have to call it in quotes (`"*"`)
### File Stats
Make a program that takes for argument a file.
It will return its name, its size in bytes, and count which letter is the least and the most recurrent in the file.
### Web scraper
Make a program that takes for argument a file, in which each line corresponds to a URL.
The program will then count the number of `"@"` present in the HTML.
For a list of more than 1 URL, use goroutines to use multi-thread to find emails in all the URLS in concurrency.
**Bonus :** Fetch every email adress present in the HTML thanks to regexp, sort them, and display them