settings

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(path string, s *Settings) error

Save will take the path of a repo and a Settings object, and write it

Types

type Settings

type Settings struct {
	Version       string `toml:"version"`
	HashAlgorithm string `toml:"hash_algorithm"`
}

Settings represents the settings of a repo

func Load

func Load(path string) (*Settings, error)

Load will take the path of a repo and return a Settings object that contains the repo's settings

Jump to

Keyboard shortcuts

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