diff --git a/process/process_darwin.go b/process/process_darwin.go index ea7a7b1..383e099 100644 --- a/process/process_darwin.go +++ b/process/process_darwin.go @@ -399,10 +399,6 @@ func (p *Process) ConnectionsMaxWithContext(ctx context.Context, max int) ([]net return net.ConnectionsPidMaxWithContext(ctx, "all", p.Pid, max) } -func (p *Process) EnvironWithContext(ctx context.Context) ([]string, error) { - return nil, common.ErrNotImplementedError -} - func ProcessesWithContext(ctx context.Context) ([]*Process, error) { out := []*Process{} diff --git a/process/process_freebsd.go b/process/process_freebsd.go index 9091d6e..0666e7f 100644 --- a/process/process_freebsd.go +++ b/process/process_freebsd.go @@ -10,9 +10,9 @@ import ( "strconv" "strings" - "github.com/shirou/gopsutil/cpu" + cpu "github.com/shirou/gopsutil/cpu" "github.com/shirou/gopsutil/internal/common" - "github.com/shirou/gopsutil/net" + net "github.com/shirou/gopsutil/net" "golang.org/x/sys/unix" ) @@ -289,10 +289,6 @@ func (p *Process) ConnectionsMaxWithContext(ctx context.Context, max int) ([]net return nil, common.ErrNotImplementedError } -func (p *Process) EnvironWithContext(ctx context.Context) ([]string, error) { - return nil, common.ErrNotImplementedError -} - func ProcessesWithContext(ctx context.Context) ([]*Process, error) { results := []*Process{} diff --git a/process/process_openbsd.go b/process/process_openbsd.go index b642137..902664b 100644 --- a/process/process_openbsd.go +++ b/process/process_openbsd.go @@ -14,10 +14,10 @@ import ( "strings" "unsafe" - "github.com/shirou/gopsutil/cpu" + cpu "github.com/shirou/gopsutil/cpu" "github.com/shirou/gopsutil/internal/common" - "github.com/shirou/gopsutil/mem" - "github.com/shirou/gopsutil/net" + mem "github.com/shirou/gopsutil/mem" + net "github.com/shirou/gopsutil/net" "golang.org/x/sys/unix" ) @@ -310,10 +310,6 @@ func (p *Process) ConnectionsMaxWithContext(ctx context.Context, max int) ([]net return nil, common.ErrNotImplementedError } -func (p *Process) EnvironWithContext(ctx context.Context) ([]string, error) { - return nil, common.ErrNotImplementedError -} - func ProcessesWithContext(ctx context.Context) ([]*Process, error) { results := []*Process{} diff --git a/v3/process/process_darwin.go b/v3/process/process_darwin.go index dde7f76..5a575dc 100644 --- a/v3/process/process_darwin.go +++ b/v3/process/process_darwin.go @@ -399,10 +399,6 @@ func (p *Process) ConnectionsMaxWithContext(ctx context.Context, max int) ([]net return net.ConnectionsPidMaxWithContext(ctx, "all", p.Pid, max) } -func (p *Process) EnvironWithContext(ctx context.Context) ([]string, error) { - return nil, common.ErrNotImplementedError -} - func ProcessesWithContext(ctx context.Context) ([]*Process, error) { out := []*Process{} diff --git a/v3/process/process_freebsd.go b/v3/process/process_freebsd.go index c5f82c7..431a673 100644 --- a/v3/process/process_freebsd.go +++ b/v3/process/process_freebsd.go @@ -10,9 +10,9 @@ import ( "strconv" "strings" - "github.com/shirou/gopsutil/v3/cpu" + cpu "github.com/shirou/gopsutil/v3/cpu" "github.com/shirou/gopsutil/v3/internal/common" - "github.com/shirou/gopsutil/v3/net" + net "github.com/shirou/gopsutil/v3/net" "golang.org/x/sys/unix" ) @@ -289,10 +289,6 @@ func (p *Process) ConnectionsMaxWithContext(ctx context.Context, max int) ([]net return nil, common.ErrNotImplementedError } -func (p *Process) EnvironWithContext(ctx context.Context) ([]string, error) { - return nil, common.ErrNotImplementedError -} - func ProcessesWithContext(ctx context.Context) ([]*Process, error) { results := []*Process{} diff --git a/v3/process/process_openbsd.go b/v3/process/process_openbsd.go index 239c81f..0977a11 100644 --- a/v3/process/process_openbsd.go +++ b/v3/process/process_openbsd.go @@ -14,10 +14,10 @@ import ( "strings" "unsafe" - "github.com/shirou/gopsutil/v3/cpu" + cpu "github.com/shirou/gopsutil/v3/cpu" "github.com/shirou/gopsutil/v3/internal/common" - "github.com/shirou/gopsutil/v3/mem" - "github.com/shirou/gopsutil/v3/net" + mem "github.com/shirou/gopsutil/v3/mem" + net "github.com/shirou/gopsutil/v3/net" "golang.org/x/sys/unix" ) @@ -310,10 +310,6 @@ func (p *Process) ConnectionsMaxWithContext(ctx context.Context, max int) ([]net return nil, common.ErrNotImplementedError } -func (p *Process) EnvironWithContext(ctx context.Context) ([]string, error) { - return nil, common.ErrNotImplementedError -} - func ProcessesWithContext(ctx context.Context) ([]*Process, error) { results := []*Process{}