From 2f572636121a78c51b7188b7bd09965cb91c9dde Mon Sep 17 00:00:00 2001 From: Eltrac Date: Wed, 26 Nov 2025 09:05:15 +0800 Subject: chore: set up essential archetecture --- api.go | 18 ++++++++++++++++++ context.go | 1 + go.mod | 3 +++ main.go | 5 +++++ router.go | 1 + 5 files changed, 28 insertions(+) create mode 100644 api.go create mode 100644 context.go create mode 100644 go.mod create mode 100644 main.go create mode 100644 router.go diff --git a/api.go b/api.go new file mode 100644 index 0000000..9cabe29 --- /dev/null +++ b/api.go @@ -0,0 +1,18 @@ +package growel + +import ( + +) + +type growel struct { } + +func (growel) New() (*growel) { + return &growel{} +} + +func (*growel) GET() {} +func (*growel) POST() {} +func (*growel) PUT() {} +func (*growel) DELETE() {} + +func (*growel) Start() {} diff --git a/context.go b/context.go new file mode 100644 index 0000000..aa10769 --- /dev/null +++ b/context.go @@ -0,0 +1 @@ +package growel diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..f29e3d1 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/bigcoke233/growel/v2 + +go 1.25.4 diff --git a/main.go b/main.go new file mode 100644 index 0000000..e2864ae --- /dev/null +++ b/main.go @@ -0,0 +1,5 @@ +package growel + +func main() { + +} diff --git a/router.go b/router.go new file mode 100644 index 0000000..aa10769 --- /dev/null +++ b/router.go @@ -0,0 +1 @@ +package growel -- cgit v1.2.3