modfile

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base added in v0.8.4

type Base struct {
	Version string `yaml:"modfileVersion" json:"modfileVersion"`
}

type Decoders

type Decoders map[string]func(*yaml.Node) (any, error)

func (Decoders) Add

func (d Decoders) Add(f func() (string, func(*yaml.Node) (any, error)))

type Generators

type Generators map[string]func(any) (*module.Module, error)

func (Generators) Add

func (g Generators) Add(f func() (string, func(any) (*module.Module, error)))

type MfWrapper added in v0.8.4

type MfWrapper struct {
	// contains filtered or unexported fields
}

func New added in v0.2.1

func New(decoders Decoders, generators Generators) *MfWrapper

func (*MfWrapper) GetModule added in v0.8.4

func (w *MfWrapper) GetModule() (*module.Module, error)

func (*MfWrapper) UnmarshalYAML added in v0.8.4

func (w *MfWrapper) UnmarshalYAML(yn *yaml.Node) error

Jump to

Keyboard shortcuts

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