entity

package
v0.0.0-...-b5d9cbe Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package entity provides common operations for entities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOutDir

func CreateOutDir(baseDir, name string) (string, error)

CreateOutDir creates an output directory for the entity with the given name.

func PreCheck

func PreCheck(data []string, s State)

PreCheck checks the entity is able to run and otherwise reports errors.

Types

type State

type State interface {
	DataPath(p string) string
	Errorf(fmt string, args ...interface{})
}

State represents state associated with an entity.

Jump to

Keyboard shortcuts

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