gen-move-math

command module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: MIT Imports: 9 Imported by: 0

README

gen-move-math

A command line to generate missing functionalities for move.

Right now only signed integer math is supported. Decimal and u16/u32/u256 are the follow ups.

Installation

Go Reference

Please install go. After installation, simply run the below

go install github.com/fardream/gen-move-math@latest

Or without downloading

go run github.com/fardream/gen-move-math@latest

Use

This package doesn't provide a move module - it provides a command line utility to generate move code to do that. That is, you can include the generated file inside your own move module. However, the code will be similar to the example. See example for how to use.

Signed Integer Math

Vast majority of application can go without signed integers, but occasionally, signed integer can solve some corner cases.

NOTE: there is really nothing wrong with represent the signed integer with a boolean and a unsigned integer.

The implementation contained here is 2's complement.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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