()
| 17 | } |
| 18 | |
| 19 | func AllOption() ([]*Option, error) { |
| 20 | var options []*Option |
| 21 | var err error |
| 22 | err = DB.Find(&options).Error |
| 23 | return options, err |
| 24 | } |
| 25 | |
| 26 | func InitOptionMap() { |
| 27 | common.OptionMapRWMutex.Lock() |
no outgoing calls
no test coverage detected