utils

package
v0.0.0-...-33b8324 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2017 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log = logrus.New()

Functions

func ANDROID_NDK_DIR

func ANDROID_NDK_DIR() string

func ANDROID_SDK_DIR

func ANDROID_SDK_DIR() string

func Abs

func Abs(appPath string) (string, error)

func CheckBuildTarget

func CheckBuildTarget(buildTarget string)

func ExistsDir

func ExistsDir(name string) bool

func ExistsFile

func ExistsFile(name string) bool

func GoQtPkgPath

func GoQtPkgPath(s ...string) string

func IPHONEOS_SDK_DIR

func IPHONEOS_SDK_DIR() string

func IPHONESIMULATOR_SDK_DIR

func IPHONESIMULATOR_SDK_DIR() string

func IsHomeBrewQtDir

func IsHomeBrewQtDir() bool

func IsMsys2QtDir

func IsMsys2QtDir() bool

func JDK_DIR

func JDK_DIR() string

func LinuxDistro

func LinuxDistro() string

func Load

func Load(name string) string

TODO: export error

func LoadOptional

func LoadOptional(name string) string

TODO: export error

func MACOS_SDK_DIR

func MACOS_SDK_DIR() string

func MkdirAll

func MkdirAll(dir string) error

func MustGoBin

func MustGoBin() string

func MustGoPath

func MustGoPath() string

MustGoPath is same as GoPath but exits if any error ocurres it also caches the result

func QT_DARWIN_DIR

func QT_DARWIN_DIR() string

func QT_DEBUG

func QT_DEBUG() bool

func QT_DIR

func QT_DIR() string

func QT_DOC_DIR

func QT_DOC_DIR() string

func QT_MISC_DIR

func QT_MISC_DIR() string

func QT_MSYS2_DIR

func QT_MSYS2_DIR() string

func QT_MXE_ARCH

func QT_MXE_ARCH() string

func QT_STUB

func QT_STUB() bool

func QT_VERSION

func QT_VERSION() string

func QT_VERSION_MAJOR

func QT_VERSION_MAJOR() string

func RPI1_SYSROOT_DIR

func RPI1_SYSROOT_DIR() string

func RPI2_SYSROOT_DIR

func RPI2_SYSROOT_DIR() string

func RPI3_SYSROOT_DIR

func RPI3_SYSROOT_DIR() string

func RPI_TOOLS_DIR

func RPI_TOOLS_DIR() string

func RemoveAll

func RemoveAll(name string) error

func RunCmd

func RunCmd(cmd *exec.Cmd, name string) string

func RunCmdOptional

func RunCmdOptional(cmd *exec.Cmd, name string) string

func SAILFISH_DIR

func SAILFISH_DIR() string

func Save

func Save(name, data string) error

func SaveBytes

func SaveBytes(name string, data []byte) error

func UseHomeBrew

func UseHomeBrew() bool

func UseMsys2

func UseMsys2() bool

func UsePkgConfig

func UsePkgConfig() bool

func VIRTUALBOX_DIR

func VIRTUALBOX_DIR() string

func WalkFilterBlacklist

func WalkFilterBlacklist(root string, f filepath.WalkFunc) filepath.WalkFunc

WalkFilterBlacklist filter out blacklisted file

func WalkFilterPrefix

func WalkFilterPrefix(f filepath.WalkFunc, prefixes ...string) filepath.WalkFunc

WalkFilterPrefix only process file that do not have specified prefix

func WalkOnlyDirectory

func WalkOnlyDirectory(f filepath.WalkFunc) filepath.WalkFunc

WalkFilterDirectory only allow directory

func WalkOnlyExtension

func WalkOnlyExtension(f filepath.WalkFunc, extensions ...string) filepath.WalkFunc

WalkOnlyExtension only process file (not directory) that their extension is specified, without the `.` such as `go` or `html`.

func WalkOnlyFile

func WalkOnlyFile(f filepath.WalkFunc) filepath.WalkFunc

WalkOnlyFile is opposite of WalkFilterDirectory, it only allow file

func XCODE_DIR

func XCODE_DIR() string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL