utils

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var History relic.ImmutableHistory = relic.NewHistory("fractal", "https://github.com/fractalplatform/fractal").
	MustDeclareReleases(
		"0.0.7 - 2019-04-23",
		`### Removed
- [WALLET] removed wallet module,the local node not support store private key
### Added
- [VM] add opt for opSnapBalance and destroyasset for contract
- [BLOCKCHAIN] support import/export block
- [RPC] add get the contract internal transaction
### Fixed
- [VM] add opt for opSnapBalance
- [TYPES] fixs the base types
- [ALL] fixs some bugs
`,
		"0.0.6 - 2019-04-04",
		`### Added
- [CRYPTO] add btcd secp256k1 crypto
### Fixed
- [MAKEFILE] fixed cross platform
`,
		"0.0.5 - 2019-04-04",
		`### Added
- [README] add license badge
- [SCRIPTS] add is_checkout_dirty.sh release.sh tag_release.sh commit_hash.sh
### Fixed
- [MAKEFILE] add check fmt tag_release release command
`,
	)

History the releases described by version string and changes, newest release first. The current release is taken to be the first release in the slice, and its version determines the single authoritative version for the next release.

To cut a new release add a release to the front of this slice then run the release tagging script: ./scripts/tag_release.sh

View Source
var VersionCmd = &cobra.Command{
	Use:   "version",
	Short: "Show current version",
	Long:  `Show current version`,
	Run: func(cmd *cobra.Command, args []string) {
		version()
	},
}

VersionCmd represents the version command

Functions

This section is empty.

Types

type LogConfig added in v0.0.7

type LogConfig struct {
	PrintOrigins bool   `mapstructure:"printorigins"`
	Level        int    `mapstructure:"level"`
	Vmodule      string `mapstructure:"vmodule"`
	BacktraceAt  string `mapstructure:"backtraceat"`
}

LogConfig represents a log config

func DefaultLogConfig added in v0.0.7

func DefaultLogConfig() *LogConfig

DefaultLogConfig returns a default config

func (*LogConfig) Setup added in v0.0.7

func (lc *LogConfig) Setup()

Setup initializes logging based on the LogConfig

Jump to

Keyboard shortcuts

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