covenant

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Eight = 8

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data []byte

type HeaderTest

type HeaderTest struct {
	Version     int32  `hsp:"01"`
	TestName    string `hsp:"00"`
	TestArray   []byte
	S           Struct
	Producer    proto.NodeID  `hsp:"02"`
	GenesisHash []hash.Hash   `hsp:"06"`
	ParentHash  []*hash.Hash  `hsp:"03"`
	MerkleRoot  *[]*hash.Hash `hsp:"05"`
	Timestamp   time.Time     `hsp:"04"`
	// contains filtered or unexported fields
}

HeaderTest is a block header.

type HeaderTest2

type HeaderTest2 struct {
	S            Struct // position is not relevant
	Version2     int32  `hsp:"01"`
	TestName2    string `hsp:"00"`
	TestArray    []byte
	Producer2    proto.NodeID  `hsp:"02"`
	GenesisHash2 []hash.Hash   `hsp:"06"`
	ParentHash2  []*hash.Hash  `hsp:"03"`
	MerkleRoot2  *[]*hash.Hash `hsp:"05"`
	Timestamp2   time.Time     `hsp:"04"`
	// contains filtered or unexported fields
}

HeaderTest is a block header.

type MyInt

type MyInt int

type Person1

type Person1 struct {
	Name    string
	Age     int
	Address string
	Map     map[string]int

	Unexported string `hsp:"-"` // this field is ignored
	// contains filtered or unexported fields
}

type Person2

type Person2 struct {
	Name    string
	Address string
	Age     int
	Map222  map[string]int `hspack:"Map"`

	Unexported string `hsp:"-"` // this field is ignored
	// contains filtered or unexported fields
}

type Struct

type Struct struct {
	Which map[string]*MyInt `hsp:"2which"`
	Other Data              `hsp:"1other"`
	Nums  [Eight]float64    `hsp:"3nums"`
}

Jump to

Keyboard shortcuts

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