ProjectTapebucket

package module
v0.0.0-...-963bc9d Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

README

ProjectTapebucket

Golang pastebin (made as addon for imgsrvr)

Documentation

Index

Constants

View Source
const (
	URLLen = 8
)

Variables

This section is empty.

Functions

func AddToDB

func AddToDB(text, identity *string, db *sql.DB) (string, error)

AddToDB adds a block of text to the database and returns both the url and error database should be mysql

func ReturnFromDB

func ReturnFromDB(url string, db *sql.DB) (*string, error)

ReturnFromDB returns a pointer to the paste from a database and an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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