file

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultGoModule = "github.com/toniphan21/go-mapper-gen/example"
View Source
const DefaultGoVersion = "1.25"

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File interface {
	FilePath() string

	FileContent() []byte
}

func MakePklDevConfigFile

func MakePklDevConfigFile(amends string, imports []string, filePath string, lines []string) File

func New

func New(path string, content []byte) File

func PklDevConfigFile

func PklDevConfigFile(lines ...string) File

type Go

type Go struct {
	Path    string
	Content string
	Lines   []string
}

func (Go) FileContent

func (g Go) FileContent() []byte

func (Go) FilePath

func (g Go) FilePath() string

type GoMod

type GoMod struct {
	Module   string
	Version  string
	Requires map[string]string // package => version
}

func (GoMod) FileContent

func (g GoMod) FileContent() []byte

func (GoMod) FilePath

func (g GoMod) FilePath() string

func (GoMod) GetModule

func (g GoMod) GetModule() string

func (GoMod) GetVersion

func (g GoMod) GetVersion() string

type GoSum

type GoSum struct {
	Lines []string
}

func (*GoSum) FileContent

func (g *GoSum) FileContent() []byte

func (*GoSum) FilePath

func (g *GoSum) FilePath() string

type Pkl

type Pkl struct {
	Path    string
	Content string
	Lines   []string
}

func (*Pkl) FileContent

func (p *Pkl) FileContent() []byte

func (*Pkl) FilePath

func (p *Pkl) FilePath() string

Jump to

Keyboard shortcuts

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