From d0997d928279664ec708b8b01765f60a19c62f4d Mon Sep 17 00:00:00 2001 From: Kris Crawford Date: Fri, 6 Jun 2025 07:03:50 -0400 Subject: [PATCH] Initial save --- .gitignore | 1 + README.md | 0 add.go | 15 +++++++++++++ address.db | Bin 0 -> 12288 bytes go.mod | 10 +++++++++ go.sum | 13 +++++++++++ main.go | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++ utils/sql.go | 35 +++++++++++++++++++++++++++++ 8 files changed, 135 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 add.go create mode 100644 address.db create mode 100644 go.mod create mode 100644 go.sum create mode 100644 main.go create mode 100644 utils/sql.go diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/add.go b/add.go new file mode 100644 index 0000000..cb9d968 --- /dev/null +++ b/add.go @@ -0,0 +1,15 @@ +package main + +import "fmt" + +func add() { + // Prompt the user for the name and phone number of the new contact + var fname, lname, phone string + fmt.Printf("Enter the first name of the new contact: ") + fmt.Scanln(&fname) + fmt.Printf("Enter the last name of the new contact: ") + fmt.Scanln(&lname) + fmt.Printf("Enter the phone number: ") + fmt.Scanln(&phone) + fmt.Printf("You entered: Name: %s, Phone: %s\n", fname, phone) +} diff --git a/address.db b/address.db new file mode 100644 index 0000000000000000000000000000000000000000..55a263192a4161eea7c212c1523727efc27b1e26 GIT binary patch literal 12288 zcmeI%K}*9h6bJC66SV`Gx8Y&%z{|#l7r%g2f)u-M)(or{sWrnv*E$ z2p)y;e~^Y3UK0B2>CwB}Xk`s8tG9J#>0BHODa8em5JK|k@Myy2driW#%l`@~&b~%R zT;=r+Mel(h2nav`0uX=z1Rwwb2tWV=5P-lx3e3Iz{&*}?n>`h#-W1#vKh|dRZpyr! zcCHc?Xhk}>j1;wMhh?@l6W%%cIF$$e!9aeVY|qTA(q_4>o7wwuO0!DCuJ5m&DU7wc zRte3Ma2g~j-Kdm;g`R~mZ=0%EPq=RB?jo)3HN`U?izsr-#qZ0nFICy9?)ux_oSS|G z1Rwwb2tWV=5P$##AOHafKmY