generate

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 11 Imported by: 0

README

generate

import "github.com/tfadeyi/slotalk/internal/generate"

Package generate contains utilities to generate data from a given specification

Index

Variables

ErrUnsupportedFormat is returned if the output format is unsupported

var ErrUnsupportedFormat = errors.New("the specification is in an invalid format")

func IsValidOutputFormat

func IsValidOutputFormat(format string) bool

func WriteSpecification

func WriteSpecification(spec any, stdout bool, out string, formats ...string) error

WriteSpecification write the application bytes to a given writer

Generated by gomarkdoc

Documentation

Overview

Package generate contains utilities to generate data from a given specification

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedFormat = errors.New("the specification is in an invalid format")

ErrUnsupportedFormat is returned if the output format is unsupported

Functions

func IsValidOutputFormat

func IsValidOutputFormat(format string) bool

func WriteSpecification

func WriteSpecification(spec any, stdout bool, out string, formats ...string) error

WriteSpecification write the application bytes to a given writer

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL