зеркало из https://github.com/mozilla/scribe.git
gofmt some missed files
This commit is contained in:
Родитель
c327638a67
Коммит
bba2ac14e0
|
@ -9,8 +9,8 @@ package main
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
|
||||||
"github.com/mozilla/scribe"
|
"github.com/mozilla/scribe"
|
||||||
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
16
pkgmgr.go
16
pkgmgr.go
|
@ -21,18 +21,18 @@ type pkgmgrResult struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type pkgmgrInfo struct {
|
type pkgmgrInfo struct {
|
||||||
name string
|
name string
|
||||||
version string
|
version string
|
||||||
pkgtype string
|
pkgtype string
|
||||||
arch string
|
arch string
|
||||||
}
|
}
|
||||||
|
|
||||||
// Package information from the system as returned by QueryPackages().
|
// Package information from the system as returned by QueryPackages().
|
||||||
type PackageInfo struct {
|
type PackageInfo struct {
|
||||||
Name string `json:"name" yaml:"name"` // Package name.
|
Name string `json:"name" yaml:"name"` // Package name.
|
||||||
Version string `json:"version" yaml:"version"` // Package version.
|
Version string `json:"version" yaml:"version"` // Package version.
|
||||||
Type string `json:"type" yaml:"type"` // Package type.
|
Type string `json:"type" yaml:"type"` // Package type.
|
||||||
Arch string `json:"arch" yaml:"arch"` // Package architecture
|
Arch string `json:"arch" yaml:"arch"` // Package architecture
|
||||||
}
|
}
|
||||||
|
|
||||||
// Query packages on the system, returning a slice of all identified packages
|
// Query packages on the system, returning a slice of all identified packages
|
||||||
|
|
|
@ -9,8 +9,8 @@ package main
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
|
||||||
"github.com/mozilla/scribe"
|
"github.com/mozilla/scribe"
|
||||||
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
var flagDebug bool
|
var flagDebug bool
|
||||||
|
|
Загрузка…
Ссылка в новой задаче