htpasswd

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: ISC Imports: 4 Imported by: 1

Documentation

Overview

Package htpasswd allows for easy management of .htpasswd files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTPasswd

type HTPasswd struct {
	Path       string
	User       string
	UserPrompt string
	PassPrompt string
}

HTPasswd represents the basic info needed for managing a .htpasswd file.

func (*HTPasswd) Add

func (h *HTPasswd) Add() error

Add adds a new entry to a .htpasswd file. If the file exists, Add will append the new entry to the file.

Jump to

Keyboard shortcuts

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