Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// TLSEnabled is true if serverURL's schema is HTTPS.
	TLSEnabled bool
)

Functions

func AddPaste

func AddPaste(data []byte, filename string, pipe bool) (string, error)

    AddPaste wraps around postFile and postStdin.

    func DeletePaste

    func DeletePaste(inputString string) (string, error)

      DeletePaste deletes paste. inputString can be either full URL or just paste ID.

      func LoadVars

      func LoadVars()

        LoadVars sets all config entries.

        Types

        This section is empty.