repositorypackage
0.0.0-20211107025933-8f19054700cb
Repository: https://github.com/miguelmota/go-ethutil.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
go-ethutil
Ethereum utility functions for Go.
Documentation
https://godoc.org/github.com/miguelmota/go-ethutil
Install
go get -u github.com/miguelmota/go-ethutil
Getting started
package main
import (
"fmt"
"log"
"github.com/miguelmota/go-ethutil"
)
func main() {
wei := ethutil.ToWei(0.02, 18)
fmt.Println(wei) // 20000000000000000
}
Examples
Check out the ./example
directory and documentation.
License
MIT