pass

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2018 License: Unlicense, Unlicense Imports: 2 Imported by: 0

Documentation

Overview

Package pass is a Fenced with string conversion functions, which are not recommended to be used. However the distinct type adds other safety benefits for the programmer and can be treated exactly the same as the Fenced otherwise.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Password

type Password struct {
	buf.Fenced
}

Password is just a Fenced but recommended for use in storing password fields in other structures to signify what kind of data it is.

func New

func New() (R *Password)

New creates a new Password

func (*Password) FromString

func (r *Password) FromString(s string) *Password

FromString loads the Lockedbuffer with the bytes of a string. The string is immutable so it is not removed from memory except automatically.

func (*Password) MarshalJSON

func (r *Password) MarshalJSON() ([]byte, error)

MarshalJSON marshalls the JSON for a Password

func (*Password) String

func (r *Password) String() string

String returns value encoded according to the current coding mode

Jump to

Keyboard shortcuts

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