summaryrefslogtreecommitdiff
path: root/group.go
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-12-03 14:47:01 +0800
committerEltrac <hi@guhub.cn>2025-12-03 14:47:01 +0800
commitc1f6161d4360578cba00f2a6933b7cf9247622a3 (patch)
treeb907b66e0beb5da85f3f8b83cb871ef40188bd5d /group.go
parent8871615c98bce3c2c3aa871ce4e80126558cb91b (diff)
style: run gofmt and remove pointless comments
Diffstat (limited to 'group.go')
-rw-r--r--group.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/group.go b/group.go
index 06370eb..c08e3a2 100644
--- a/group.go
+++ b/group.go
@@ -20,8 +20,8 @@ func (e *Engine) Group(prefix string, fn func(*Group)) {
// Group.Group creates a nested Group
// joining all prefixes of parent groups
-func(g *Group) Group(prefix string, fn func(*Group)) {
- nested := &Group {
+func (g *Group) Group(prefix string, fn func(*Group)) {
+ nested := &Group{
prefix: joinPath(g.prefix, prefix),
engine: g.engine,
}