Closed ivysochyn closed 1 year ago
The code gets more complex, and parsing functions are huge. The task is to separate them from the main.go file into the utils/ sub-package of the project and refactor parsing functions for more human readability.
main.go
utils/
Created the parser subpackage where corresponding functions were stored.
parser
Reduced amount of code by removing functions to save and read from file HTML pages, it saves a lot of runtime time.
Changes were merged.
The code gets more complex, and parsing functions are huge. The task is to separate them from the
main.go
file into theutils/
sub-package of the project and refactor parsing functions for more human readability.