Skip to content

Commit

Permalink
Merge pull request #7 from waynezhang/develop
Browse files Browse the repository at this point in the history
Migrate log to zerolog and fix some lint warning
  • Loading branch information
waynezhang committed Jan 6, 2024
2 parents c913cfe + 0e76646 commit 5d433ee
Show file tree
Hide file tree
Showing 18 changed files with 85 additions and 130 deletions.
7 changes: 3 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ go 1.18
require (
github.com/chelnak/ysmrr v0.3.0
github.com/disintegration/imaging v1.6.2
github.com/gookit/color v1.5.4
github.com/mitchellh/mapstructure v1.5.0
github.com/otiai10/copy v1.14.0
github.com/rs/zerolog v1.31.0
github.com/spf13/cobra v1.8.0
github.com/spf13/viper v1.18.2
github.com/stretchr/testify v1.8.4
Expand All @@ -34,12 +34,11 @@ require (
github.com/stretchr/objx v0.5.0 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
github.com/tdewolff/parse/v2 v2.7.7 // indirect
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc // indirect
golang.org/x/image v0.14.0 // indirect
golang.org/x/sync v0.5.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/sync v0.6.0 // indirect
golang.org/x/sys v0.16.0 // indirect
golang.org/x/text v0.14.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down
20 changes: 12 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
github.com/chelnak/ysmrr v0.3.0 h1:eBm6PvNnjAV920MOEwCzCG3gLn+EFGUf4Go+t+T2/Ps=
github.com/chelnak/ysmrr v0.3.0/go.mod h1:HedVxtqeGSPnSS7qDRtq4vPVGoz8DXcCr9jvjF263rQ=
github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand All @@ -12,9 +13,8 @@ github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4Nij
github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA=
github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM=
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
github.com/gookit/color v1.5.4 h1:FZmqs7XOyGgCAxmWyPslpiok1k05wmY3SJTytgvYFs0=
github.com/gookit/color v1.5.4/go.mod h1:pZJOeOS8DM43rXbp4AZo1n9zCU2qjpcRko0b6/QJi9w=
github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
Expand All @@ -26,6 +26,7 @@ github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3v
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
Expand All @@ -35,10 +36,14 @@ github.com/otiai10/copy v1.14.0/go.mod h1:ECfuL02W+/FkTWZWgQqXPWZgW9oeKCSQ5qVfSc
github.com/otiai10/mint v1.5.1 h1:XaPLeE+9vGbuyEHem1JNk3bYc7KKqyI/na0/mLd/Kks=
github.com/pelletier/go-toml/v2 v2.1.1 h1:LWAJwfNvjQZCFIDKWYQaM62NcYeYViCmWIwmOStowAI=
github.com/pelletier/go-toml/v2 v2.1.1/go.mod h1:tJU2Z3ZkXwnxa4DPO899bsyIoywizdUvyaeZurnPPDc=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg=
github.com/rs/zerolog v1.31.0 h1:FcTR3NnLWW+NnTwwhFWiJSZr4ECLpqCm6QsEnyvbV4A=
github.com/rs/zerolog v1.31.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/sagikazarmark/locafero v0.4.0 h1:HApY1R9zGo4DBgr7dqsTH/JJxLTTsOt7u6keLGt6kNQ=
github.com/sagikazarmark/locafero v0.4.0/go.mod h1:Pe1W6UlPYUk/+wc/6KFhbORCfqzgYEpgQ3O5fPuL3H4=
Expand Down Expand Up @@ -72,21 +77,20 @@ github.com/tdewolff/parse/v2 v2.7.7 h1:V+50eFDH7Piw4IBwH8D8FtYeYbZp3T4SCtIvmBSIM
github.com/tdewolff/parse/v2 v2.7.7/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA=
github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52 h1:gAQliwn+zJrkjAHVcBEYW/RFvd2St4yYimisvozAYlA=
github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE=
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc h1:ao2WRsKSzW6KuUY9IWPwWahcHCgR0s52IfwutMfEbdM=
golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI=
golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
golang.org/x/image v0.14.0 h1:tNgSxAFe3jC4uYqvZdTr84SZoM1KfwdC9SKIFrLjFn4=
golang.org/x/image v0.14.0/go.mod h1:HUYqC05R2ZcZ3ejNQsIHQDQiwWM4JBqmm6MKANTp4LE=
golang.org/x/sync v0.5.0 h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE=
golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ=
golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc=
golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU=
golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
Expand Down
10 changes: 5 additions & 5 deletions internal/cache/file_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"sync"

cp "github.com/otiai10/copy"
"github.com/rs/zerolog/log"
"github.com/waynezhang/foto/internal/files"
"github.com/waynezhang/foto/internal/log"
)

// Implenmentation
Expand Down Expand Up @@ -36,7 +36,7 @@ func (cache folderCache) AddImage(src string, width int, file string) {
}

path := cache.imagePath(*checksum, width)
log.Debug("Add cache image %s for %s", path, src)
log.Debug().Msgf("Add cache image %s for %s", path, src)
err = files.EnsureParentDirectory(path)
if err != nil {
return
Expand All @@ -48,7 +48,7 @@ func (cache folderCache) AddImage(src string, width int, file string) {
func (cache folderCache) CachedImage(src string, width int) *string {
checksum, err := files.Checksum(src)
if err != nil {
log.Fatal("Failed to generate file hash %s (%s).", src, err.Error())
log.Warn().Msgf("Failed to generate file hash %s (%s).", src, err.Error())
return nil
}

Expand All @@ -63,9 +63,9 @@ func (cache folderCache) CachedImage(src string, width int) *string {
func (cache folderCache) Clear() {
dir := cache.directoryName
if !files.IsExisting(dir) {
log.Fatal("Failed to find cache directory %s.", dir)
log.Warn().Msgf("Failed to find cache directory %s.", dir)
}
files.PruneDirectory(dir)
_ = files.PruneDirectory(dir)
}

func (cache folderCache) imagePath(checksum string, width int) string {
Expand Down
11 changes: 4 additions & 7 deletions internal/cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ package cmd

import (
"io/fs"
"os"
"path/filepath"
"strings"

"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
staticFs "github.com/waynezhang/foto/fs"
"github.com/waynezhang/foto/internal/files"
"github.com/waynezhang/foto/internal/log"
"github.com/waynezhang/foto/internal/utils"
)

Expand All @@ -25,17 +24,15 @@ var CreateCmd = func() *cobra.Command {

func create(cmd *cobra.Command, args []string) {
if len(args) != 1 {
log.Fatal("Directory argument not found")
os.Exit(1)
log.Fatal().Msg("Directory argument not found")
}

targetPath := args[0]
if files.IsExisting(targetPath) {
log.Fatal("Directory " + targetPath + " already exists.")
os.Exit(1)
log.Fatal().Msg("Directory " + targetPath + " already exists.")
}

log.Debug("Creating directory %s...", targetPath)
log.Debug().Msgf("Creating directory %s...", targetPath)
err := files.EnsureDirectory(targetPath)
utils.CheckFatalError(err, "Failed to create directory")

Expand Down
6 changes: 3 additions & 3 deletions internal/cmd/preview.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (
"net/http"
"strings"

"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"github.com/waynezhang/foto/internal/config"
"github.com/waynezhang/foto/internal/constants"
"github.com/waynezhang/foto/internal/images"
"github.com/waynezhang/foto/internal/indexer"
"github.com/waynezhang/foto/internal/log"
"github.com/waynezhang/foto/internal/utils"
)

Expand All @@ -29,7 +29,7 @@ var PreviewCmd = func() *cobra.Command {
}()

func preview(cmd *cobra.Command, args []string) {
log.Debug("Creating Preview...")
log.Debug().Msg("Creating Preview...")

config := config.Shared()
index, err := indexer.Build(config.GetSectionMetadata(), config.GetExtractOption())
Expand Down Expand Up @@ -61,7 +61,7 @@ func preview(cmd *cobra.Command, args []string) {
http.Handle(path, http.StripPrefix(path, dir))
}

log.Info("Server started -> http://localhost:%d", port)
log.Info().Msgf("Server started -> http://localhost:%d", port)
err = http.ListenAndServe(fmt.Sprintf(":%d", port), nil)
utils.CheckFatalError(err, "Failed to listen the port")
}
Expand Down
12 changes: 10 additions & 2 deletions internal/cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
package cmd

import (
"os"

"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"github.com/waynezhang/foto/internal/log"
"github.com/waynezhang/foto/internal/utils"
)

Expand All @@ -15,7 +18,12 @@ func Execute() {
_ = cmd.Help()
},
PersistentPreRun: func(cmd *cobra.Command, args []string) {
log.SetVerbose(verbose)
log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr})
if verbose {
zerolog.SetGlobalLevel(zerolog.DebugLevel)
} else {
zerolog.SetGlobalLevel(zerolog.InfoLevel)
}
},
}

Expand Down
5 changes: 3 additions & 2 deletions internal/cmd/version.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package cmd

import (
"fmt"

"github.com/spf13/cobra"
"github.com/waynezhang/foto/internal/log"
)

var Version = ""
Expand All @@ -12,6 +13,6 @@ var VersionCmd = &cobra.Command{
Use: "version",
Short: "Print the version",
Run: func(cmd *cobra.Command, args []string) {
log.Println("foto v%s+%s", Version, Revision)
fmt.Printf("foto v%s+%s\n", Version, Revision)
},
}
10 changes: 5 additions & 5 deletions internal/config/file_config.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package config

import (
"github.com/rs/zerolog/log"
"github.com/spf13/viper"
"github.com/waynezhang/foto/internal/constants"
"github.com/waynezhang/foto/internal/log"
"github.com/waynezhang/foto/internal/utils"
)

Expand All @@ -26,11 +26,11 @@ func NewFileConfig(file string) Config {

config := fileConfig{v: v}

v.UnmarshalKey("section", &config.sections)
v.UnmarshalKey("image", &config.option)
v.UnmarshalKey("others.folders", &config.otherFolders)
_ = v.UnmarshalKey("section", &config.sections)
_ = v.UnmarshalKey("image", &config.option)
_ = v.UnmarshalKey("others.folders", &config.otherFolders)

log.Debug("Config parsed: %v", config)
log.Debug().Msgf("Config parsed: %v", config)

return config
}
Expand Down
10 changes: 5 additions & 5 deletions internal/export/default_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import (
"sync"

cp "github.com/otiai10/copy"
"github.com/rs/zerolog/log"
"github.com/waynezhang/foto/internal/cache"
"github.com/waynezhang/foto/internal/config"
"github.com/waynezhang/foto/internal/files"
"github.com/waynezhang/foto/internal/images"
"github.com/waynezhang/foto/internal/indexer"
"github.com/waynezhang/foto/internal/log"
mm "github.com/waynezhang/foto/internal/minimize"
"github.com/waynezhang/foto/internal/utils"
)
Expand Down Expand Up @@ -61,7 +61,7 @@ func (ctx defaultExportContext) exportPhotos(
err = resizeImageAndCache(srcPath, originalPath, originalWidth, cache)
utils.CheckFatalError(err, "Failed to generate original image")

log.Debug("Processing image %s", srcPath)
log.Debug().Msgf("Processing image %s", srcPath)
if postProgressFn != nil {
postProgressFn(srcPath)
}
Expand Down Expand Up @@ -92,13 +92,13 @@ func (ctx defaultExportContext) generateIndexHtml(cfg config.Config, templatePat

func (ctx defaultExportContext) processOtherFolders(folders []string, outputPath string, minimizer mm.Minimizer, messageFunc func(src string, dst string)) {
for _, folder := range folders {
targetFolder := filepath.Join(outputPath, folder)
targetFolder := filepath.Join(outputPath, filepath.Base(folder))
if messageFunc != nil {
messageFunc(folder, targetFolder)
}

if err := cp.Copy(folder, targetFolder); err != nil {
log.Fatal("Failed to copy folder %s to %s (%s).", folder, targetFolder, err)
log.Error().Msgf("Failed to copy folder %s to %s (%s).", folder, targetFolder, err)
}
_ = filepath.WalkDir(targetFolder, func(path string, d fs.DirEntry, err error) error {
if minimizer.Minimizable(path) {
Expand All @@ -112,7 +112,7 @@ func (ctx defaultExportContext) processOtherFolders(folders []string, outputPath
func resizeImageAndCache(src string, to string, width int, cache cache.Cache) error {
cached := cache.CachedImage(src, width)
if cached != nil {
log.Debug("Found cached image for %s", src)
log.Debug().Msgf("Found cached image for %s", src)
err := cp.Copy(*cached, to)
if err == nil {
return nil
Expand Down
16 changes: 7 additions & 9 deletions internal/export/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ import (

"github.com/chelnak/ysmrr"
"github.com/chelnak/ysmrr/pkg/animations"
"github.com/rs/zerolog/log"
"github.com/waynezhang/foto/internal/cache"
"github.com/waynezhang/foto/internal/config"
"github.com/waynezhang/foto/internal/constants"
"github.com/waynezhang/foto/internal/files"
"github.com/waynezhang/foto/internal/indexer"
"github.com/waynezhang/foto/internal/log"
mm "github.com/waynezhang/foto/internal/minimize"
"github.com/waynezhang/foto/internal/utils"
)

func Export(outputPath string, minimize bool) error {
return export(
func Export(outputPath string, minimize bool) {
export(
config.Shared(),
outputPath,
minimizer(minimize),
Expand Down Expand Up @@ -57,7 +57,7 @@ func export(
minimizer mm.Minimizer,
cache cache.Cache,
ctx context,
) error {
) {
sm := ysmrr.NewSpinnerManager(
ysmrr.WithAnimation(animations.Dots),
)
Expand All @@ -72,14 +72,14 @@ func export(
spinnerMsg("removing directory %s", outputPath)
err := ctx.cleanDirectory(outputPath)
if err != nil {
return err
utils.CheckFatalError(err, "Failed to remove directory.")
}

spinnerMsg("building index")
photosDirectory := files.OutputPhotosFilePath(outputPath)
section, err := ctx.buildIndex(cfg)
if err != nil {
ctx.cleanDirectory(outputPath)
_ = ctx.cleanDirectory(outputPath)
utils.CheckFatalError(err, "Failed to build index.")
}

Expand All @@ -88,7 +88,7 @@ func export(
})

indexPath := files.OutputIndexFilePath(outputPath)
log.Debug("Exporting photos to %s", indexPath)
log.Debug().Msgf("Exporting photos to %s", indexPath)
ctx.generateIndexHtml(cfg, constants.TemplateFilePath, section, indexPath, minimizer)

ctx.processOtherFolders(cfg.GetOtherFolders(), outputPath, minimizer, func(src string, dst string) {
Expand All @@ -99,8 +99,6 @@ func export(

spinner.Complete()
sm.Stop()

return nil
}

func minimizer(minimize bool) mm.Minimizer {
Expand Down
Loading

0 comments on commit 5d433ee

Please sign in to comment.