object

package
v0.0.0-...-77132cc Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(name string) interfaces.Object

New creates a new object

Types

type Option

type Option func(*Options)

Option func

func Description

func Description(s string) Option

Description to set object description

func Fields

func Fields(f ...interfaces.Field) Option

Fields to set object fields

func Name

func Name(s string) Option

Name to set object name

type Options

type Options struct {
	Name        string
	Description string
	Fields      []interfaces.Field
}

Options struct

Jump to

Keyboard shortcuts

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