R.I.P Shadowsocks

This commit is contained in:
v2ray
2016-01-27 12:46:40 +01:00
parent 6b894c719d
commit 2e866be181
4 changed files with 131 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
// +build json
package serial
import (
"encoding/json"
)
func (this *StringLiteral) UnmarshalJSON(data []byte) error {
var str string
if err := json.Unmarshal(data, &str); err != nil {
return err
}
*this = StringLiteral(str)
return nil
}