Added screen clear and updated binary to include it

This commit is contained in:
ultimateplayer1999 2023-01-11 11:44:40 +01:00
parent 9add6af2d0
commit 1f36ae43c9
Signed by: ultimateplayer1999
GPG Key ID: 690D4E43F8B51E51
3 changed files with 16 additions and 1 deletions

View File

@ -15,4 +15,17 @@ The following code is needed in a .env. This is for the DB connection.
This is based on the phish table. Table can also be changed if needed. This is based on the phish table. Table can also be changed if needed.
Execution time is *1h24m16.934194673s*. This was for **18811 records**. Execution time is *1h23m35.23654842s*. This was for **18855 records**.
Sample output with all defined code:
Script started at 11-01-2023 10:11:17
Deletion: Number of rows affected: 2
Altering: Number of rows affected: 0
Insert: Number of rows affected: 1
Insert: Number of rows affected: 1
11-01-2023 10:11:18: Initial database table setup done
Status code: 200
Total number of rows affected: 18855
Recent changes recieved and has been added to the database. Removed domains deleted from database. Reorded domains.
Script ended at 11-01-2023 11:34:52
Time until completion: 1h23m35.23654842s

View File

@ -16,6 +16,8 @@ import (
) )
func main() { func main() {
// Clear the screen
fmt.Print("\033[2J")
// Load environment variables from .env file // Load environment variables from .env file
err := godotenv.Load() err := godotenv.Load()
if err != nil { if err != nil {

Binary file not shown.