mods

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mods provides utilities for working with Arma 3 mods.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDestinationNotDirectory = errors.New("destination is not a directory")
)

Functions

func FromDirectory

func FromDirectory(path string) ([]string, error)

FromDirectory returns a list of mods from a directory

func Meta added in v0.2.0

func Meta(file string) (*string, error)

Meta returns the name of the mod from the meta.cpp file

Types

type Bikey added in v0.2.0

type Bikey interface {
	Find(ctx context.Context, path string) ([]string, error)
	Copy(ctx context.Context, keys []string, destination string) error
}

func NewBikey added in v0.2.0

func NewBikey() Bikey

type Syncer added in v0.2.0

type Syncer interface {
	Sync(ctx context.Context, destination string, source string) error
}

func NewSync

func NewSync() Syncer

Jump to

Keyboard shortcuts

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