beego bee tool mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
195B

  1. package utils
  2. import "fmt"
  3. type DocValue string
  4. func (d *DocValue) String() string {
  5. return fmt.Sprint(*d)
  6. }
  7. func (d *DocValue) Set(value string) error {
  8. *d = DocValue(value)
  9. return nil
  10. }