From fab98f88f4373ce39fe4e5dbc199a84d64e5c854 Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Fri, 17 Dec 2021 17:03:56 +0800 Subject: [PATCH] update --- history/helper.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/history/helper.go b/history/helper.go index ddae37c..e063ff0 100644 --- a/history/helper.go +++ b/history/helper.go @@ -46,7 +46,14 @@ func (h *History) Grp(grp string) *History { h.Group = grp return h } -func (h *History) Scp(sco string) *History { - h.Scope = sco +func (h *History) Scp(scp string) *History { + h.Scope = scp + return h +} + +// Mod alter the derived module name, and put the original mod to scope +func (h *History) Mod(mod string) *History { + h.Scope = h.Module + h.Module = mod return h }