generator

package
v0.0.0-...-92a94ce Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(opts *Options) error

func GetJSON

func GetJSON(url string, v interface{}) error

func GetMeetupInfoFromAPI

func GetMeetupInfoFromAPI(humanGen types.MeetupGroup) (*types.AutogenMeetupGroup, error)

GetMeetupInfoFromAPI fetches all information it can about the given meetup group from the meetup.com API, and returns the autogenerated type

Types

type Options

type Options struct {
	// SpeakersFile points to the speakers.yaml file
	SpeakersFile string
	// CompaniesFile points to the companies.yaml file
	CompaniesFile string
	// RootDir points to the directory that has all meetup groups as subfolders, each with a meetup.yaml file
	RootDir string
	// DryRun controls whether to actually apply the changes or not
	DryRun bool
	// Validate controls whether to validate the current state of the repo content with the spec
	Validate bool
}

Options for the generator TODO: Make this better :)

Jump to

Keyboard shortcuts

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