Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gontainer/exporter
Generate a GO code from the given variables.
https://github.com/gontainer/exporter
code-generation go golang
Last synced: about 2 months ago
JSON representation
Generate a GO code from the given variables.
- Host: GitHub
- URL: https://github.com/gontainer/exporter
- Owner: gontainer
- License: mit
- Created: 2024-02-28T22:39:05.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-07T20:22:21.000Z (10 months ago)
- Last Synced: 2024-06-21T14:25:11.682Z (7 months ago)
- Topics: code-generation, go, golang
- Language: Go
- Homepage:
- Size: 14.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Go Reference](https://pkg.go.dev/badge/github.com/gontainer/exporter.svg)](https://pkg.go.dev/github.com/gontainer/exporter)
[![Tests](https://github.com/gontainer/exporter/actions/workflows/tests.yml/badge.svg)](https://github.com/gontainer/exporter/actions/workflows/tests.yml)
[![Coverage Status](https://coveralls.io/repos/github/gontainer/exporter/badge.svg?branch=main)](https://coveralls.io/github/gontainer/exporter?branch=main)
[![Go Report Card](https://goreportcard.com/badge/github.com/gontainer/exporter)](https://goreportcard.com/report/github.com/gontainer/exporter)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=gontainer_exporter&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=gontainer_exporter)# Exporter
This package provides sets of functions to export variables to a GO code.
It has been extracted from [github.com/gontainer/gontainer-helpers](https://github.com/gontainer/gontainer-helpers).```go
s, _ := exporter.Export([3]any{nil, 1.5, "hello world"})
fmt.Println(s)
// Output: [3]interface{}{nil, float64(1.5), "hello world"}
```See [examples](examples_test.go).