mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-10 06:13:51 -05:00
17 lines
308 B
Go
17 lines
308 B
Go
|
|
package settings
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/mattermost/mattermost/server/public/model"
|
||
|
|
)
|
||
|
|
|
||
|
|
func stringsToOptions(in []string) []*model.PostActionOptions {
|
||
|
|
out := make([]*model.PostActionOptions, len(in))
|
||
|
|
for i, o := range in {
|
||
|
|
out[i] = &model.PostActionOptions{
|
||
|
|
Text: o,
|
||
|
|
Value: o,
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return out
|
||
|
|
}
|