config

package
v0.0.0-...-ed293d0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Example:

import (
  "fmt"
  "github.com/jvzantvoort/tmux-project/config"
)

mainconfig := NewMainConfig()
fmt.Printf("home dir: %s", mainconfig.HomeDir)
fmt.Printf("tmux dir: %s", mainconfig.TmuxDir)
fmt.Printf("project type config dir: %s", mainconfig.ProjTypeConfigDir)

Package config provides configuration data globally used

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MainConfig

type MainConfig struct {
	HomeDir           string
	TmuxDir           string
	ProjTypeConfigDir string
}

func NewMainConfig

func NewMainConfig() *MainConfig

func (MainConfig) ExpandHome

func (m MainConfig) ExpandHome(pathstr string) (string, error)

ExpandHome expand the tilde in a given path.

Jump to

Keyboard shortcuts

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