scaffold

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const WebSocketIndexSource = `` /* 366-byte string literal not displayed */

Variables

This section is empty.

Functions

func CreateProject

func CreateProject(ctx cli.Context, opts Options) error

func EnsureTargetDoesNotExist

func EnsureTargetDoesNotExist(path string) error

func EnsureWebSocket

func EnsureWebSocket(root string) error

EnsureWebSocket creates the optional entrypoint without overwriting user code.

func ProjectDirs

func ProjectDirs() []string

func ValidateProjectName

func ValidateProjectName(name string) error

func VerifyProject

func VerifyProject(root string, opts Options) error

func WriteDirs

func WriteDirs(root string, dirs []string) error

func WriteFiles

func WriteFiles(root string, files []File) error

Types

type File

type File struct {
	Path    string
	Content string
}

func ProjectFiles

func ProjectFiles(opts Options) []File

type Options

type Options struct {
	ProjectName      string
	TargetDir        string
	GoVersion        string
	GoxModule        string
	GoxModuleVersion string
	Manifest         deps.GoxJSON
}

func (Options) ProjectPath

func (o Options) ProjectPath() string

Jump to

Keyboard shortcuts

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