Fixes #125: Support custom per-mapper placeholder text (#169)

This commit is contained in:
andrewbaxter
2021-05-17 20:31:07 +09:00
committed by GitHub
parent 9c81441ae0
commit b3bdeb18e2
4 changed files with 42 additions and 0 deletions
+1
View File
@@ -43,6 +43,7 @@ func (r *DecodeContext) WithScanner(scan *Scanner) *DecodeContext {
}
// MapperValue may be implemented by fields in order to provide custom mapping.
// Mappers may additionally implement PlaceHolderProvider to provide custom placeholder text.
type MapperValue interface {
Decode(ctx *DecodeContext) error
}