README ¶ gonetx/tcp tcp is a package providing utility functions for tcp. Detect Detect checks if a tcp address is connectable with specific timeout. ok, err := tcp.Detect("www.google.com:443", time.Second) fmt.Println(ok, err) Expand ▾ Collapse ▴ Documentation ¶ Overview ¶ Package tcp is a library providing utility functions of tcp. Index ¶ func Detect(addr string, timeout time.Duration) (bool, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Detect ¶ func Detect(addr string, timeout time.Duration) (bool, error) Detect checks if a tcp address is connectable with specific timeout Types ¶ This section is empty. Source Files ¶ View all Source files tcp.go Click to show internal directories. Click to hide internal directories.