run

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2017 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package run compiles your Go file and runs it on headless chrome

This is the programmatic API to running Joy. Run will be called by the CLI:

$ joy run main.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg *Config) (result string, err error)

Run fn

Types

type Config

type Config struct {
	FilePath    string          // Go file to compile (required)
	Context     context.Context // Cancellable context (optional, default: background)
	Development bool            // Run the development bundle (optional, default: true)
	JoyPath     string          // Root path to Joy's state files (optional)
	Log         log.Interface   // Logger to use (optional)
}

Config struct

Jump to

Keyboard shortcuts

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