коммит произвёл
GitHub
родитель
a01927331a
Коммит
15037a510a
@@ -18,13 +18,13 @@ type InitialLoad struct {
|
|||||||
NoAccounts bool `json:"no_accounts"`
|
NoAccounts bool `json:"no_accounts"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (me *InitialLoad) ToJson() string {
|
func (il *InitialLoad) ToJson() string {
|
||||||
b, _ := json.Marshal(me)
|
b, _ := json.Marshal(il)
|
||||||
return string(b)
|
return string(b)
|
||||||
}
|
}
|
||||||
|
|
||||||
func InitialLoadFromJson(data io.Reader) *InitialLoad {
|
func InitialLoadFromJson(data io.Reader) *InitialLoad {
|
||||||
var o *InitialLoad
|
var il *InitialLoad
|
||||||
json.NewDecoder(data).Decode(&o)
|
json.NewDecoder(data).Decode(&il)
|
||||||
return o
|
return il
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user