2 Star 0 Fork 0

比特虫洞 / mails-pnp-driver

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
module_t.go 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
徐师傅 提交于 2024-06-17 12:04 . 实现了基本的 P&P 功能
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
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/bitwormhole/mails-pnp-driver.git
git@gitee.com:bitwormhole/mails-pnp-driver.git
bitwormhole
mails-pnp-driver
mails-pnp-driver
v0.0.1

搜索帮助

344bd9b3 5694891 D2dac590 5694891