0
0
mirror of https://github.com/vx3r/wg-gen-web.git synced 2025-09-11 12:24:27 +00:00

update npm

This commit is contained in:
vx3r
2021-06-15 14:50:45 +02:00
parent 0f12e6bc87
commit 2307f2d2eb
4 changed files with 516 additions and 693 deletions

View File

@ -22,6 +22,7 @@ type ClientStatus struct {
TransmittedBytes int `json:"transmittedBytes"`
}
// MarshalJSON structure to json
func (c *ClientStatus) MarshalJSON() ([]byte, error) {
duration := fmt.Sprintf("%v ago", c.LastHandshakeRelative)