14 lines
356 B
Go
14 lines
356 B
Go
package api
|
|
|
|
// (import (
|
|
// "github.com/FernandoJVideira/simple_bank/util"
|
|
// "github.com/go-playground/validator/v10"
|
|
// )
|
|
|
|
// var validCurrency validator.Func = func(fieldlevel validator.FieldLevel) bool {
|
|
// if currency, ok := fieldlevel.Field().Interface().(string); ok {
|
|
// return util.IsSupportedCurrency(currency)
|
|
// }
|
|
// return false
|
|
// })
|