mirror of
https://github.com/beego/bee.git
synced 2024-11-14 17:00:54 +00:00
15 lines
195 B
Go
15 lines
195 B
Go
|
package utils
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
type DocValue string
|
||
|
|
||
|
func (d *DocValue) String() string {
|
||
|
return fmt.Sprint(*d)
|
||
|
}
|
||
|
|
||
|
func (d *DocValue) Set(value string) error {
|
||
|
*d = DocValue(value)
|
||
|
return nil
|
||
|
}
|