stub

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Controller is the path to controller stubs
	Controller = "embed/controller"
	// Middleware is the path to middleware stubs
	Middleware = "embed/middleware"
	// Model is the path to model stubs
	Model = "embed/model"
)

Variables

This section is empty.

Functions

func GenerateStubVersionPath

func GenerateStubVersionPath(path string, version semver.Version) (*string, error)

GenerateStubVersionPath return the path to a stub according to a version

func Load

func Load(name string, data Data) (*bytes.Buffer, error)

Load load a stub file with injected data

Types

type Data

type Data map[string]string

Data represent the data to inject inside stub files

Jump to

Keyboard shortcuts

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