Compare commits

...

3 Commits

Author SHA1 Message Date
6b4bd5a6f8 v0.0.413 fix tests
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m33s
2024-03-11 21:00:30 +01:00
6df4f5f2a1 v0.0.412 fix GenerateIDSpecs accepting nil for opt
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 1m32s
2024-03-11 20:58:06 +01:00
780905ba35 v0.0.411
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m33s
2024-03-11 20:43:37 +01:00
4 changed files with 10 additions and 10 deletions

View File

@@ -38,7 +38,7 @@ var rexIDChecksumConst = rext.W(regexp.MustCompile(`const ChecksumIDGenerator =
//go:embed id-generate.template //go:embed id-generate.template
var templateIDGenerateText string var templateIDGenerateText string
func GenerateIDSpecs(sourceDir string, destFile string, opt *IDGenOptions) error { func GenerateIDSpecs(sourceDir string, destFile string, opt IDGenOptions) error {
debugOutput := langext.Coalesce(opt.DebugOutput, false) debugOutput := langext.Coalesce(opt.DebugOutput, false)

View File

@@ -34,10 +34,10 @@ func TestGenerateIDSpecs(t *testing.T) {
_, err = cmdext.Runner("tar").Arg("-xvzf").Arg(tmpFile).Arg("-C").Arg(tmpDir).FailOnExitCode().FailOnTimeout().Timeout(time.Minute).Run() _, err = cmdext.Runner("tar").Arg("-xvzf").Arg(tmpFile).Arg("-C").Arg(tmpDir).FailOnExitCode().FailOnTimeout().Timeout(time.Minute).Run()
tst.AssertNoErr(t, err) tst.AssertNoErr(t, err)
err = GenerateIDSpecs(tmpDir, tmpDir+"/id_gen.go", &IDGenOptions{DebugOutput: langext.PTrue}) err = GenerateIDSpecs(tmpDir, tmpDir+"/id_gen.go", IDGenOptions{DebugOutput: langext.PTrue})
tst.AssertNoErr(t, err) tst.AssertNoErr(t, err)
err = GenerateIDSpecs(tmpDir, tmpDir+"/id_gen.go", &IDGenOptions{DebugOutput: langext.PTrue}) err = GenerateIDSpecs(tmpDir, tmpDir+"/id_gen.go", IDGenOptions{DebugOutput: langext.PTrue})
tst.AssertNoErr(t, err) tst.AssertNoErr(t, err)
fmt.Println() fmt.Println()

View File

@@ -74,12 +74,12 @@ func NewEngine(opt Options) *GinWrapper {
if !wrapper.ginDebug { if !wrapper.ginDebug {
gin.SetMode(gin.ReleaseMode) gin.SetMode(gin.ReleaseMode)
ginlogger := gin.Logger() if !wrapper.suppressGinLogs {
engine.Use(func(context *gin.Context) { ginlogger := gin.Logger()
if !wrapper.suppressGinLogs { engine.Use(func(context *gin.Context) {
ginlogger(context) ginlogger(context)
} })
}) }
} else { } else {
gin.SetMode(gin.DebugMode) gin.SetMode(gin.DebugMode)
} }

View File

@@ -1,5 +1,5 @@
package goext package goext
const GoextVersion = "0.0.410" const GoextVersion = "0.0.413"
const GoextVersionTimestamp = "2024-03-11T20:42:12+0100" const GoextVersionTimestamp = "2024-03-11T21:00:30+0100"