gontainer / exporter

Generate a GO code from the given variables.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go Reference Tests Coverage Status Go Report Card Quality Gate Status

Exporter

This package provides sets of functions to export variables to a GO code.
It has been extracted from github.com/gontainer/gontainer-helpers.

s, _ := exporter.Export([3]any{nil, 1.5, "hello world"})
fmt.Println(s)
// Output: [3]interface{}{nil, float64(1.5), "hello world"}

See examples.

About

Generate a GO code from the given variables.

License:MIT License


Languages

Language:Go 98.8%Language:Makefile 1.2%