config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type COSISpecification

type COSISpecification struct {
	SemanticVersion string
	APIVersion      string
}

type Config

type Config struct {
	ModPath           *url.URL
	TemplateRoot      string
	OutputDir         string
	GoVersion         string
	Year              int
	Comment           string
	COSISpecification *COSISpecification
}

func New

func New(modPath string, opts ...Option) (*Config, error)

New returns new Config struct, given that the modPath is a valid URL.

func (*Config) WithComment

func (c *Config) WithComment(comment string) *Config

type Option

type Option func(c *Config) error

func WithOutputDir

func WithOutputDir(output string) Option

WithOutputDir ...

func WithTemplateRoot

func WithTemplateRoot(root string) Option

WithTemplateRoot ...

Jump to

Keyboard shortcuts

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