common

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2020 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const DefaultHost = "http://127.0.0.1:9000"

Variables

This section is empty.

Functions

func DecodeHex

func DecodeHex(text string) []byte

func EncodeHex

func EncodeHex(bytes []byte) string

func GenerateAESKey

func GenerateAESKey() string

func GetHost

func GetHost() string

Types

type PasteCreateRequest

type PasteCreateRequest struct {
	Content string `json:"content"`
}

type PasteCreateResponse

type PasteCreateResponse struct {
	URL string `json:"url"`
}

type PasteReadResponse

type PasteReadResponse struct {
	Content string `json:"content"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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