Documentation
¶
Index ¶
- func DESDecrypt(src []byte, key []byte) ([]byte, error)
- func DESEncrypt(src []byte, key []byte) ([]byte, error)
- func DeepCopyJson(src, dst interface{}) error
- func DeepCopyJsonGob(src, dst interface{}) error
- func GetFreePort() (int, error)
- func GetLocalIP() (string, error)
- func IsPortAvailable(port int) bool
- func IsValidIPv4(ip string) bool
- func IsValidIPv6(ip string) bool
- func OsClose() (ch chan os.Signal)
- func SendTCPRequest(address string, port int, data []byte) error
- func SingleGetKey(key string, fn func() (interface{}, error)) (interface{}, error, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeepCopyJson ¶
func DeepCopyJson(src, dst interface{}) error
func DeepCopyJsonGob ¶
func DeepCopyJsonGob(src, dst interface{}) error
func SendTCPRequest ¶
SendTCPRequest 发送一个简单的TCP请求到指定地址和端口
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.