Documentation
¶
Overview ¶
Package argdecode converts JSON arguments to AILANG eval.Value types
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeJSON ¶
DecodeJSON converts a JSON string to an eval.Value based on the expected type Supports: null→(), number→int, string, bool, array→list, object→record Constraint: Only handles simple, non-polymorphic types for v0.1.0
Types ¶
type DecodeError ¶
type DecodeError struct {
Expected string // Expected type (pretty-printed)
Got string // JSON value received
Reason string // Human-readable reason
}
DecodeError represents an argument decoding error
func (*DecodeError) Error ¶
func (e *DecodeError) Error() string
Click to show internal directories.
Click to hide internal directories.