gitstat

package
v0.0.0-...-4450389 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filetype

type Filetype Mode

`Filetype` are the type bits of a `Mode m`, i.e. `m & ModeType`.

func (Filetype) String

func (m Filetype) String() string

type Mode

type Mode uint32

`Mode` is a Linux/Git file mode.

const (
	ModePerms Mode = 0777 // Unix permission bits

	ModeType    Mode = 0170000 // type mask
	ModeDir     Mode = 0040000 // `d` dir
	ModeRegular Mode = 0100000 // `f` regular file
	ModeSymlink Mode = 0120000 // `l` symlink
	ModeGitlink Mode = 0160000 // `g` gitlink, aka submodule commit
)

func (Mode) Filetype

func (m Mode) Filetype() Filetype

func (Mode) IsDir

func (m Mode) IsDir() bool
func (m Mode) IsGitlink() bool

func (Mode) IsRegular

func (m Mode) IsRegular() bool
func (m Mode) IsSymlink() bool

func (Mode) Perms

func (m Mode) Perms() Perms

func (Mode) String

func (m Mode) String() string

type Perms

type Perms Mode

`Perms` are the permission bits of a `Mode m`, i.e. `m & ModePerms`.

func (Perms) String

func (m Perms) String() string

Jump to

Keyboard shortcuts

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