Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 291 Bytes
package unit
// AmountOfSubstance represents a SI unit of amount of substance (in mole, mol)
type AmountOfSubstance Unit
// ...
const (
Mole AmountOfSubstance = 1e0 // SI
// Moles returns the amount of substance in mol
func (a AmountOfSubstance) Moles() float64 {
return float64(a)
You can’t perform that action at this time.