From e8935fbc73fef6df0f818b99f94f4fada06ed25b Mon Sep 17 00:00:00 2001 From: Hao Chun Chang Date: Thu, 7 Dec 2023 13:30:38 +0800 Subject: [PATCH] Update NewGITResource usage in Tutorial_en.md Add usage to specify git branch when loading resource bundle from git repo. --- docs/en/Tutorial_en.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/en/Tutorial_en.md b/docs/en/Tutorial_en.md index 1eaabde7..430d5f2f 100644 --- a/docs/en/Tutorial_en.md +++ b/docs/en/Tutorial_en.md @@ -280,6 +280,7 @@ if err != nil { ```go bundle := pkg.NewGITResourceBundle("https://github.com/hyperjumptech/grule-rule-engine.git", "/**/*.grl") +bundle.RefName = "refs/heads/main" // Specify your branch, defaults to master branch resources := bundle.MustLoad() for _, res := range resources { err := ruleBuilder.BuildRuleFromResource("TutorialRules", "0.0.1", res)