mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 17:54:01 +03:00
FILE / ScuroNeko/mtg
mtglib/internal/dc/addr.go
Исходный файл и его история в репозитории.
18 lines
293 B
Go
18 lines
293 B
Go
package dc
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/9seconds/mtg/v2/mtglib/internal/obfuscation"
|
|
)
|
|
|
|
type Addr struct {
|
|
Network string
|
|
Address string
|
|
Obfuscator obfuscation.Obfuscator
|
|
}
|
|
|
|
func (d Addr) String() string {
|
|
return fmt.Sprintf("addr=%s, secret=%v", d.Address, d.Obfuscator.Secret)
|
|
}
|