Skip to content

FIX: 1. fix format when withLineInfo=true; 2. add .gitignore#106

Merged
k0kubun merged 1 commit intok0kubun:masterfrom
kuchaguangjie:eric
Jan 23, 2026
Merged

FIX: 1. fix format when withLineInfo=true; 2. add .gitignore#106
k0kubun merged 1 commit intok0kubun:masterfrom
kuchaguangjie:eric

Conversation

@kuchaguangjie
Copy link
Copy Markdown
Contributor

When WithLineInfo = true, Printf() methods should prepend the format param with %s, because your formatAll() method added the line to start of args in that case.

[/home/eric/go/src/github.com/kuchaguangjie/fiber-crud/pkg/util/print/print_std_util.go:25
] "PRETTY PRINT": "env (without secret)"
%!(EXTRA string=config.AppEnvWithoutSecret{
  ConfigFile: "",
  Port:       0,
  PgHost:     "",
  ConsulAddr: "",
})
image

@kuchaguangjie
Copy link
Copy Markdown
Contributor Author

I tested my commit via replace, it works now:

replace github.com/k0kubun/pp/v3 => github.com/kuchaguangjie/pp/v3 v3.6.0

image

@k0kubun k0kubun merged commit e82d187 into k0kubun:master Jan 23, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants