conversion.go 323 B

123456789101112
  1. package xweb
  2. // a struct implements this interface can be convert from request param to a struct
  3. type FromConversion interface {
  4. FromString(content string) error
  5. }
  6. // a struct implements this interface can be convert from struct to template variable
  7. // Not Implemented
  8. type ToConversion interface {
  9. ToString() string
  10. }