templates

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const GoModTemplateV2 string = `` /* 521-byte string literal not displayed */
View Source
const GoModTemplateV2023 string = `` /* 521-byte string literal not displayed */
View Source
const PluginsTemplateV2 string = `` /* 472-byte string literal not displayed */
View Source
const PluginsTemplateV2023 string = `` /* 472-byte string literal not displayed */

Variables

This section is empty.

Functions

func CompileGoModTemplate2023

func CompileGoModTemplate2023(buf *bytes.Buffer, data *Template) error

func CompileGoModTemplateV2

func CompileGoModTemplateV2(buf *bytes.Buffer, data *Template) error

func CompileTemplateV2

func CompileTemplateV2(buf *bytes.Buffer, data *Template) error

func CompileTemplateV2023

func CompileTemplateV2023(buf *bytes.Buffer, data *Template) error

Types

type Entry

type Entry struct {
	Module    string
	Structure string
	Prefix    string
	Version   string
	// Replace directive, should include path
	Replace string
}

Entry represents all info about module

type Template

type Template struct {
	// ModuleVersion is the main module version, like v2023.1.0
	ModuleVersion string
	Entries       []*Entry
}

Jump to

Keyboard shortcuts

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