mod

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSkip = errors.New("skip")

Functions

func GetName added in v0.0.3

func GetName(paths ...string) (dir string, name string)

func GetNameFromPath added in v0.0.2

func GetNameFromPath(path string) (name string)

func New

func New(path string, update func(modfile *File) error) error

func Update

func Update(path string, update func(modFile *File) error) error

Types

type File

type File struct {
	// contains filtered or unexported fields
}

func Open

func Open(path string) (*File, error)

func (*File) IsEmpty added in v0.0.2

func (modFile *File) IsEmpty() bool

func (*File) IsNil

func (modFile *File) IsNil() bool

func (*File) Name added in v0.0.2

func (modFile *File) Name() string

func (*File) Package

func (modFile *File) Package() string

func (*File) Path

func (modFile *File) Path() string

func (*File) Save

func (modFile *File) Save() error

Jump to

Keyboard shortcuts

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