utils

package
v2.0.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package utils provides useful chemistry related utilities

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCasNumber

func IsCasNumber(c string) bool

IsCasNumber returns true if c is a valid cas number

func IsCeNumber

func IsCeNumber(c string) bool

IsCeNumber returns true if c is a valid ce number

func LinearToEmpiricalFormula

func LinearToEmpiricalFormula(f string) string

LinearToEmpiricalFormula returns the empirical formula from the linear formula f. example: [(CH3)2SiH]2NH

(CH3)2C[C6H2(Br)2OH]2

func RandStringBytes

func RandStringBytes(n int) string

RandStringBytes generates a n size random string

func SendMail

func SendMail(to string, subject string, body string) error

SendMail send a mail

func SortEmpiricalFormula

func SortEmpiricalFormula(f string) (string, error)

SortEmpiricalFormula returns the sorted f empirical formula.

func SortSimpleFormula

func SortSimpleFormula(f string) (string, error)

SortSimpleFormula returns the sorted f formula.

Types

This section is empty.

Jump to

Keyboard shortcuts

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