mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-11 22:30:47 +01:00
fix agent json marshal
This commit is contained in:
@@ -192,7 +192,7 @@ func (cfg *AgentConfig) String() string {
|
||||
return "agent@" + cfg.Name()
|
||||
}
|
||||
|
||||
func (cfg *AgentConfig) MarshalText() ([]byte, error) {
|
||||
func (cfg *AgentConfig) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(map[string]string{
|
||||
"name": cfg.Name(),
|
||||
"addr": cfg.Addr,
|
||||
|
||||
Reference in New Issue
Block a user