代码拉取完成,页面将自动刷新
package mailspnpdriver
import (
"embed"
"github.com/starter-go/application"
)
const (
theModuleName = "gitee.com/bitwormhole/mails-pnp-driver"
theModuleVersion = "v0.0.1"
theModuleRevision = 1
)
////////////////////////////////////////////////////////////////////////////////
const (
theMainModuleResPath = "src/main/resources"
theTestModuleResPath = "src/test/resources"
)
//go:embed "src/main/resources"
var theMainModuleResFS embed.FS
//go:embed "src/test/resources"
var theTestModuleResFS embed.FS
////////////////////////////////////////////////////////////////////////////////
// NewMainModule ...
func NewMainModule() *application.ModuleBuilder {
mb := new(application.ModuleBuilder)
mb.Name(theModuleName + "#main")
mb.Version(theModuleVersion)
mb.Revision(theModuleRevision)
mb.EmbedResources(theMainModuleResFS, theMainModuleResPath)
return mb
}
// NewTestModule ...
func NewTestModule() *application.ModuleBuilder {
mb := new(application.ModuleBuilder)
mb.Name(theModuleName + "#test")
mb.Version(theModuleVersion)
mb.Revision(theModuleRevision)
mb.EmbedResources(theTestModuleResFS, theTestModuleResPath)
return mb
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。