xcresult

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeArray

func DecodeArray[T any, PT pt[T]](m map[string]any) []T

func DecodeDouble

func DecodeDouble(m map[string]any) float64

func DecodeObject

func DecodeObject[T any, PT pt[T]](m map[string]any) T

func DecodeString

func DecodeString(m map[string]any) string

func OpenAttachment

func OpenAttachment(xcResultPath string, fileID *string) ([]byte, error)

func ToJson

func ToJson(xcResultPath string, fileID *string) (map[string]any, error)

Types

type Decoder

type Decoder interface {
	TypeName() string
	Decode(map[string]any)
}

func DecodeVarArray

func DecodeVarArray(m map[string]any, factory DecoderFactory) []Decoder

func DecodeVarObject

func DecodeVarObject(m map[string]any, factory DecoderFactory) Decoder

type DecoderFactory

type DecoderFactory func(typ string) Decoder

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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