conf

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateGoplzRc

func CreateGoplzRc(virtualGoPath string)

CreateGoplzRc creates the .goplzrc file.

func HasGoplzRc

func HasGoplzRc() bool

HasGoplzRc returns true if the .goplzrc file exists.

func RegisterInitializer

func RegisterInitializer(i initializer)

RegisterInitializer registers the given initializer.

Types

type Config

type Config struct {
	Settings *pb.Settings

	GoImportPath  string
	Workspace     string
	GoplzConf     string
	GoplzPid      string
	PlzConf       string
	VirtualSrcDir string
}

Config contains the goplz configuration.

func Cfg

func Cfg() *Config

Cfg returns the goplz config.

func (*Config) GetExistingProcess

func (cfg *Config) GetExistingProcess() *os.Process

GetExistingProcess returns the existing goplz process for the workspace.

Jump to

Keyboard shortcuts

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