Skip to content

Commit

Permalink
feat: add echo binder implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
manicar2093 committed Apr 12, 2024
1 parent 532bf0c commit 691a4a8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions echo.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package goption

import (
"fmt"
)

func (cb *Optional[T]) UnmarshalText(text []byte) error {
return cb.UnmarshalJSON([]byte(fmt.Sprintf("\"%s\"", text)))

}

0 comments on commit 691a4a8

Please sign in to comment.