utils

package
v0.0.0-...-b2c2fc5 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(in string, obj interface{})

Decode decodes the input from base64 It can optionally unzip the input after decoding

func Encode

func Encode(obj interface{}) string

Encode encodes the input in base64 It can optionally zip the input before encoding

func HTTPServer

func HTTPServer() chan Msg

func MustReadStdin

func MustReadStdin() string

MustReadStdin blocks until input is received from stdin

Types

type Msg

type Msg struct {
	Request  chan string
	Response chan string
}

Jump to

Keyboard shortcuts

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