Add 'environment' package
This commit adds a new environment package that manages all calls to the underlying operating system.
This commit is contained in:
parent
822c70cd69
commit
f19619ef9f
60 changed files with 539 additions and 308 deletions
11
pkg/environment/native_net.go
Normal file
11
pkg/environment/native_net.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
package environment
|
||||
|
||||
import "net"
|
||||
|
||||
func (Native) Listen(network, address string) (net.Listener, error) {
|
||||
return net.Listen(network, address)
|
||||
}
|
||||
|
||||
func (Native) Dial(network, address string) (net.Conn, error) {
|
||||
return net.Dial(network, address)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue