ethregexlib

package
v0.0.0-...-1791402 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package ethregexlib provides various regex utility functions that are relevant to ethpm and Ethereum in general. Information about this spec can be found here http://ethpm.github.io/ethpm-spec/package-spec.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAddress

func CheckAddress(bc string) (err error)

CheckAddress ensures the string is a valid Ethereum address

func CheckAlias

func CheckAlias(s string) (err error)

CheckAlias ensures the string is formatted to the spec defined here https://ethpm.github.io/ethpm-spec/glossary.html#term-contract-alias

func CheckBIP122URI

func CheckBIP122URI(s string) (err error)

CheckBIP122URI ensures the string is formatted to the proper uri spec defined here https://github.com/bitcoin/bips/blob/master/bip-0122.mediawiki

func CheckBytecode

func CheckBytecode(bc string) (err error)

CheckBytecode ensures the string is a valid hexadecimal string

func CheckContractName

func CheckContractName(s string) (err error)

CheckContractName ensures names and identifiers are formatted correctly to the spec defined here https://ethpm.github.io/ethpm-spec/glossary.html#term-identifier

func CheckDependencyTree

func CheckDependencyTree(s string) (err error)

CheckDependencyTree ensures the string is in proper ethpm format specified here https://ethpm.github.io/ethpm-spec/package-spec.html#value-value

func CheckPackageName

func CheckPackageName(s string) (err error)

CheckPackageName ensures the string is a proper ethpm package name

func CheckSemver

func CheckSemver(s string) (err error)

CheckSemver ensures package versioning matches semver standard

func CheckThirtyTwoByteHash

func CheckThirtyTwoByteHash(bc string) (err error)

CheckThirtyTwoByteHash ensures the string is a valid 32-byte hash

Types

This section is empty.

Jump to

Keyboard shortcuts

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