js

package
v0.1.31 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CamelCaseMapper camelCaseMapper

Functions

func ToCamelCase

func ToCamelCase(name string) string

Types

type FileAPI added in v0.1.31

type FileAPI struct{}

func (FileAPI) Exec added in v0.1.31

func (self FileAPI) Exec(name string, arguments ...string) (string, error)

func (FileAPI) TemporaryDirectory added in v0.1.31

func (self FileAPI) TemporaryDirectory(pattern string, directory string) (string, error)

func (FileAPI) TemporaryFile added in v0.1.31

func (self FileAPI) TemporaryFile(pattern string, directory string) (string, error)

type FormatAPI added in v0.1.31

type FormatAPI struct{}

func (FormatAPI) Atob added in v0.1.31

func (self FormatAPI) Atob(b64 string) ([]byte, error)

Decode base64 to bytes

func (FormatAPI) Btoa added in v0.1.31

func (self FormatAPI) Btoa(bytes []byte) string

Encode bytes as base64

func (FormatAPI) BytesToString added in v0.1.31

func (self FormatAPI) BytesToString(bytes []byte) string

func (FormatAPI) Decode added in v0.1.31

func (self FormatAPI) Decode(code string, format string, all bool) (ard.Value, error)

func (FormatAPI) Encode added in v0.1.31

func (self FormatAPI) Encode(value interface{}, format string, indent string, writer io.Writer) (string, error)

func (FormatAPI) NewXMLDocument added in v0.1.31

func (self FormatAPI) NewXMLDocument() *etree.Document

func (FormatAPI) StringToBytes added in v0.1.31

func (self FormatAPI) StringToBytes(string_ string) []byte

func (FormatAPI) ValidateFormat added in v0.1.31

func (self FormatAPI) ValidateFormat(code string, format string) error

type URLAPI added in v0.1.31

type URLAPI struct {
	Url urlpkg.URL
}

func (URLAPI) Directory added in v0.1.31

func (self URLAPI) Directory() (string, error)

func (URLAPI) Download added in v0.1.31

func (self URLAPI) Download(sourceUrl string, targetPath string) error

func (URLAPI) GetRelativeURL added in v0.1.31

func (self URLAPI) GetRelativeURL(url string) (urlpkg.URL, error)

func (URLAPI) Load added in v0.1.31

func (self URLAPI) Load(url string) (string, error)

type UtilAPI added in v0.1.31

type UtilAPI struct{}

func (UtilAPI) DeepCopy added in v0.1.31

func (self UtilAPI) DeepCopy(value ard.Value) ard.Value

func (UtilAPI) DeepEquals added in v0.1.31

func (self UtilAPI) DeepEquals(a ard.Value, b ard.Value) bool

func (UtilAPI) Hash added in v0.1.31

func (self UtilAPI) Hash(value ard.Value) (string, error)

func (UtilAPI) IsType added in v0.1.31

func (self UtilAPI) IsType(value ard.Value, type_ string) (bool, error)

func (UtilAPI) JoinFilePath added in v0.1.31

func (self UtilAPI) JoinFilePath(elements ...string) string

func (UtilAPI) Mutex added in v0.1.31

func (self UtilAPI) Mutex() *sync.Mutex

func (UtilAPI) Now added in v0.1.31

func (self UtilAPI) Now() time.Time

func (UtilAPI) Sprintf added in v0.1.31

func (self UtilAPI) Sprintf(format string, args ...interface{}) string

Jump to

Keyboard shortcuts

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