generator

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 3 Imported by: 5

Documentation

Overview

Package generator makes a small abstraction for main => generators to work with.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilenameFromTitle

func FilenameFromTitle(title string) string

FilenameFromTitle creates a filename from a title

Types

type File

type File struct {
	Name     string
	Contents []byte
}

File described by name and contents

type Interface

type Interface interface {
	Load(fs fs.FS) error
	Do(spec *openapi3spec.OpenAPI3, params map[string]string) ([]File, error)
}

Interface can load templates and generate file data

Jump to

Keyboard shortcuts

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