vcode

package
v0.0.0-...-a7becc3 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(secret string, real string, code string) error

Types

type Field

type Field struct {
	Image string `json:"image"`
	Real  string `json:"real"`
}

func New

func New(ln int, secret string) *Field

type Image

type Image struct {
	*image.Paletted
	// contains filtered or unexported fields
}

func (*Image) Base64

func (m *Image) Base64() string

func (*Image) EncodedPNG

func (m *Image) EncodedPNG() []byte

encodedPNG encodes an image to PNG and returns the result as a byte slice.

Jump to

Keyboard shortcuts

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