This project provides utilities for general chemistry. The name of the project was inspired by periodic table creator Dmitri Ivanovic Mendeleev.
Key features:
- Get all elements properties from the periodic table โ๏ธ
If you want to contribute with a new feature or found out some bug which you can solve, check our contributing guideline
-
init the go module in your project
$ go mod init example.com/myProject
-
Just import the
godmitri
library in your projectimport "github.com/edualb/godmitri/element"
package main
import (
"fmt"
"github.com/edualb/godmitri/element"
)
func main() {
// Creates an instance of Aluminium
a := element.Aluminium{}
// Prints the atomic weight from aluminium
fmt.Printf("%f\n", a.GetAtomicWeight())
}