lib

package
v0.0.0-...-7a3f1f1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendString

func AppendString(a ...string) string

func CacheHandler

func CacheHandler(days int, next http.Handler) http.Handler

func Compile

func Compile(body string) ([]byte, error)

func CreateGist

func CreateGist(desc, content string) ([]byte, error)

func Format

func Format(data []byte) ([]byte, error)

func GZipHandler

func GZipHandler(next http.Handler) http.Handler

func MakeArgs

func MakeArgs(a ...interface{}) []interface{}

func ParseResponse

func ParseResponse(data []byte) (map[string]interface{}, error)

func PrintTimeStamp

func PrintTimeStamp() string

Types

type Client

type Client struct {
	Id   string
	Name string
	Conn *websocket.Conn
}

type CompileResponse

type CompileResponse struct {
	Errors string
	Events []map[string]interface{}
}

func ParseCompileResponse

func ParseCompileResponse(data []byte) (CompileResponse, error)

func (CompileResponse) Message

func (c CompileResponse) Message() interface{}

type Debug

type Debug bool

func (Debug) Printf

func (d Debug) Printf(format string, args ...interface{})

type File

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

type GZipResponseWriter

type GZipResponseWriter struct {
	io.Writer
	http.ResponseWriter
}

func (GZipResponseWriter) Write

func (w GZipResponseWriter) Write(b []byte) (int, error)

type Gist

type Gist struct {
	Description string          `json:"description"`
	Public      bool            `json:"public"`
	Files       map[string]File `json:"files"`
}

https://developer.github.com/v3/gists/#create-a-gist

type Message

type Message struct {
	// in: "format", "edit", "message", "info"
	Kind string
	Body string
	Args []interface{}
}

func (Message) String

func (m Message) String() string

Jump to

Keyboard shortcuts

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