mirror of
https://github.com/gofiber/fiber.git
synced 2025-07-13 23:58:29 +00:00
16 lines
247 B
Go
16 lines
247 B
Go
package bind
|
|
|
|
import (
|
|
"reflect"
|
|
|
|
"github.com/gofiber/fiber/v3/utils"
|
|
)
|
|
|
|
type stringDecoder struct {
|
|
}
|
|
|
|
func (d *stringDecoder) UnmarshalString(s string, fieldValue reflect.Value) error {
|
|
fieldValue.SetString(utils.CopyString(s))
|
|
return nil
|
|
}
|