v.io: v.io/x/ref/lib/vdl/codegen/json Index | Files

package json

import "v.io/x/ref/lib/vdl/codegen/json"

Package json implements JSON generation for VDL const values.

Index

Package Files

const.go

func Const Uses

func Const(v *vdl.Value, pkgPath string, imports codegen.Imports) string

Const returns a JSON representation of a value.

TODO(razvanm): use this function to replace most (all?) of the untypedConst function from v.io/x/ref/lib/vdl/codegen/javascript.

Package json imports 6 packages (graph) and is imported by 1 packages. Updated 2020-10-22. Refresh now. Tools for package owners.