-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
33 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
module github.com/p-society/mail | ||
module github.com/p-society/gc-server | ||
|
||
go 1.21.6 | ||
go 1.21.7 | ||
|
||
require github.com/gorilla/mux v1.8.1 | ||
|
||
require ( | ||
github.com/gorilla/mux v1.8.1 // indirect | ||
github.com/joho/godotenv v1.5.1 // indirect | ||
github.com/jordan-wright/email v4.0.1-0.20210109023952-943e75fe5223+incompatible // indirect | ||
) |
File renamed without changes.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
# Set directory and repository name | ||
directory="$1" | ||
repo_name="$2" | ||
|
||
# Validate arguments | ||
if [[ -z "$directory" || -z "$repo_name" ]]; then | ||
echo "Error: Please provide both directory and repository name." | ||
exit 1 | ||
fi | ||
|
||
# Initialize Go module | ||
go mod init "$repo_name" | ||
|
||
# Change directory | ||
cd "$directory" | ||
|
||
# Create directories | ||
echo "Creating directories..." | ||
mkdir -p bin cmd/main pkg internal | ||
|
||
# Create touch files | ||
touch cmd/main/main.go Makefile | ||
|
||
echo "Project setup complete!" |