Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (31 sloc) 810 Bytes
// Copyright 2017 The go-hep Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package job
import (
// Stmt represents a job options statement.
type Stmt struct {
Type StmtType // type of the statement
Data C // the configuration data associated with that statement
// StmtType represents the type of a job-options statement.
type StmtType int
// String returns the string representation of a StmtType
func (stmt StmtType) String() string {
switch stmt {
case StmtNewApp:
return "NewApp"
case StmtCreate:
return "Create"
case StmtSetProp:
return "SetProp"
panic(fmt.Errorf("fwk: invalid StmtType value (%d)", int(stmt)))
const (
StmtNewApp StmtType = iota
You can’t perform that action at this time.