Skip to content

datamodel #

fn from_json #

fn from_json(input string) !DataModel

from_json returns a DataModel from a valid JSON string.

type DataModel #

type DataModel = []DataModel | bool | map[string]DataModel | string

DataModel describes the data types and structures that are supported by whisker.

fn (DataModel) clone #

fn (data DataModel) clone() DataModel

clone returns an independent, deep copy of the data model.

fn (DataModel) str #

fn (data DataModel) str() string

str returns a string representation of the data model.

fn (DataModel) json_str #

fn (data DataModel) json_str() string

json_str returns a JSON string representation of the data model.