mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 12:42:34 +02:00
fix agent json marshal
This commit is contained in:
parent
6d0a2cd301
commit
9bed5bf872
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ func (cfg *AgentConfig) String() string {
|
||||||
return "agent@" + cfg.Name()
|
return "agent@" + cfg.Name()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cfg *AgentConfig) MarshalText() ([]byte, error) {
|
func (cfg *AgentConfig) MarshalJSON() ([]byte, error) {
|
||||||
return json.Marshal(map[string]string{
|
return json.Marshal(map[string]string{
|
||||||
"name": cfg.Name(),
|
"name": cfg.Name(),
|
||||||
"addr": cfg.Addr,
|
"addr": cfg.Addr,
|
||||||
|
|
Loading…
Add table
Reference in a new issue