Basic CRUD in Go Lang (Create , Update, Delete) and search functionality
Make sure that you have your Go environment ready and use the Go command to download all the packages in the .mod file
go get <package_name>
go run main.go
Use the following script to creat the table
CREATE TABLE customers (
id SERIAL PRIMARY KEY,
name VARCHAR(255),
email VARCHAR(255),
phone VARCHAR(20),
address TEXT
);
id | name | phone | address | |
---|---|---|---|---|
integer |
string |
string |
string |
string |
I'm a passionate about solving problems and writing interesting codes.Introvert and a Jesus believer. Follow me for more interesting projects.