codegen

package module
v0.0.0-...-ddda045 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2023 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const GenesisCollectionID = "Collection"

Variables

This section is empty.

Functions

This section is empty.

Types

type Codegen

type Codegen interface {
	Generate() error
}

func New

func New(filename string) (Codegen, error)

type Config

type Config struct {
	Collections []string `yaml:"collection"`
	Package     string   `yaml:"package"`
	Directory   string   `yaml:"directory"`
}

func NewConfig

func NewConfig(filename string) (*Config, error)

type GenesisCollection

type GenesisCollection struct {
	Code string `json:"code"`
}

type ParsedCollection

type ParsedCollection struct {
	ID        string
	Name      string
	Fields    []*polylang.Field
	Functions []*polylang.Function
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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