1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00

rename package main to gopsutil

This commit is contained in:
WAKAYAMA Shirou 2014-04-22 09:44:22 +09:00 committed by Shirou WAKAYAMA
parent 2691abd635
commit 187d1edef9
24 changed files with 24 additions and 24 deletions

View File

@ -1,4 +1,4 @@
package main
package gopsutil
import (
"bufio"

View File

@ -1,6 +1,6 @@
// +build windows
package main
package gopsutil
import (
"syscall"

2
cpu.go
View File

@ -1,4 +1,4 @@
package main
package gopsutil
import (
"runtime"

View File

@ -1,6 +1,6 @@
// +build freebsd
package main
package gopsutil
import (
"fmt"

View File

@ -1,6 +1,6 @@
// +build linux
package main
package gopsutil
import (
"strconv"

View File

@ -1,4 +1,4 @@
package main
package gopsutil
import (
"testing"

View File

@ -1,6 +1,6 @@
// +build windows
package main
package gopsutil
import (
"syscall"

View File

@ -1,4 +1,4 @@
package main
package gopsutil
type Disk struct{}

View File

@ -1,4 +1,4 @@
package main
package gopsutil
import (
"encoding/json"

View File

@ -1,6 +1,6 @@
// +build freebsd linux
package main
package gopsutil
import "syscall"

View File

@ -1,6 +1,6 @@
// +build windows
package main
package gopsutil
import (
"bytes"

View File

@ -1,4 +1,4 @@
package main
package gopsutil
type Host struct{}

View File

@ -1,4 +1,4 @@
package main
package gopsutil
import (
"testing"

View File

@ -1,6 +1,6 @@
// +build linux freebsd
package main
package gopsutil
import (
"os"

View File

@ -1,6 +1,6 @@
// +build windows
package main
package gopsutil
import (
"github.com/mitchellh/go-ps"

View File

@ -1,4 +1,4 @@
package main
package gopsutil
type Load struct{}

View File

@ -1,6 +1,6 @@
// +build freebsd
package main
package gopsutil
import (
"exec"

View File

@ -1,6 +1,6 @@
// +build linux
package main
package gopsutil
import (
"io/ioutil"

View File

@ -1,6 +1,6 @@
// +build linux
package main
package gopsutil
import (
"testing"

View File

@ -1,6 +1,6 @@
// +build windows
package main
package gopsutil
func (l Load) LoadAvg() (LoadAvg, error) {
ret := LoadAvg{}

2
mem.go
View File

@ -1,4 +1,4 @@
package main
package gopsutil
type Mem struct{}

View File

@ -1,6 +1,6 @@
// +build freebsd linux
package main
package gopsutil
import (
"syscall"

View File

@ -1,4 +1,4 @@
package main
package gopsutil
import (
"encoding/json"

View File

@ -1,6 +1,6 @@
// +build windows
package main
package gopsutil
import (
"syscall"