localcheck

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsText

func IsText(s []byte) bool

IsText reports whether a significant prefix of s looks like correct UTF-8; that is, if it is likely that s is human-readable text.

func IsTextFile

func IsTextFile(filename string) bool

IsTextFile reports if a significant chunk of the specified file looks like correct UTF-8; that is, if it is likely that the file contains human- readable text.

Types

type Architectures

type Architectures struct {
	Intel   uint
	Arm     uint
	PowerPC uint
}

Architectures represents all supported architecture of an app.

func GetArchitectures

func GetArchitectures(path string) (Architectures, error)

GetArchitectures returns all supported architecture given the app's path.

func (*Architectures) Load

func (arch *Architectures) Load(cpu macho.Cpu)

Load loads the architectures from macho.Cpu.

func (*Architectures) LoadFromFat

func (arch *Architectures) LoadFromFat(src []macho.FatArch)

LoadFromFat loads the architectures from []macho.FatArch.

func (*Architectures) String

func (arch *Architectures) String() string

String returns the architecture in string format.

Jump to

Keyboard shortcuts

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