meta

package module
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: MIT Imports: 8 Imported by: 0

README

github.com/gobuffalo/meta/v2

GoDoc

Requirements
  • Go 1.13+
  • Go Modules
Installation
$ go get github.com/gobuffalo/meta/v2

V2 Toml

bin = "bin/coke"
vcs = "git"

[with]
  nodejs = true
  pop = true
  sqlite = false
  webpack = true
  yarn = true

[as]
  api = false
  web = true

V1 Toml

name = "coke"
bin = "bin/coke"
vcs = "git"
with_pop = true
with_sqlite = false
with_dep = false
with_webpack = true
with_nodejs = true
with_yarn = true
with_docker = true
with_grifts = true
as_web = true
as_api = false

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "development"

Functions

func Marshal

func Marshal(w io.Writer, a *App) error

Types

type App

type App struct {
	Info here.Info `json:"-" toml:"-"`
	Bin  string    `json:"bin" toml:"bin"`
	VCS  string    `json:"vcs" toml:"vcs"`
	With With      `json:"with" toml:"with"`
	As   As        `json:"as" toml:"as"`
}

func New

func New(info here.Info) (*App, error)

func NewDir

func NewDir(dir string) (*App, error)

func Unmarshal

func Unmarshal(info here.Info, b []byte) (*App, error)

type As

type As map[string]bool

type With

type With map[string]bool

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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