mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-07-16 21:09:44 +03:00
17 lines
249 B
Go
17 lines
249 B
Go
package sqlite
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
func marshalStringSlice(values []string) (string, error) {
|
|
if values == nil {
|
|
values = []string{}
|
|
}
|
|
data, err := json.Marshal(values)
|
|
if err != nil {
|
|
return "", err
|
|
}
|
|
return string(data), nil
|
|
}
|