dotfile

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package dotfile provides operations on the application dot file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager handles operations on the dot file.

func NewManager

func NewManager(filePath, fileName, appName string) *Manager

NewManager creates a new dotfile manager.

func (*Manager) Read

func (m *Manager) Read() (string, error)

Read reads the version from the dot file in the current directory, or returns an empty string if the file does not exist.

func (*Manager) Write

func (m *Manager) Write(version string) error

Write writes the version to the dot file in the current directory.

Jump to

Keyboard shortcuts

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