encoding

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package encoding the encoding JS implementation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base64

type Base64 struct{}

Base64 encoding and decoding

func (Base64) Decode

func (Base64) Decode(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value)

Decode returns the string decoding of input.

func (Base64) Encode

func (Base64) Encode(input any, skipPadding bool) (string, error)

Encode returns the base64 encoding of input.

func (Base64) EncodeURI

func (Base64) EncodeURI(input any) (string, error)

EncodeURI returns the base64URI encoding of input.

type Module

type Module struct{}

Module js module

func (*Module) Exports

func (*Module) Exports() any

Exports returns module instance

Jump to

Keyboard shortcuts

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