config

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 31, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SshhHomeName = ".sshh"
	SshhJsonName = "sshh.json"
)

Variables

View Source
var (
	UserHome = ""
	SshhHome = func() string { return UserHome + "/" + SshhHomeName }
	SshhJson = func() string { return SshhHome() + "/" + SshhJsonName }
)

Functions

func CreateJson

func CreateJson(filePath string)

func ReadJson

func ReadJson(filePath string, v interface{})

func WriteJson

func WriteJson(filePath string, v interface{}) error

Types

type Sshh

type Sshh struct {
	*connector.ConnectorCollection
}

func SshhData

func SshhData() *Sshh

func (*Sshh) Save

func (s *Sshh) Save() error

Jump to

Keyboard shortcuts

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