Esempio n. 1
0
func IdFromInt(nuc int) (Nuc, error) {
	n := Nuc(C.id_int(C.int(nuc)))
	if n < 0 {
		return 0, fmt.Errorf("'%v' is not a valid nuclide", nuc)
	}
	return n, nil
}
Esempio n. 2
0
func IdFromInt(nuc int) Nuc {
	return Nuc(C.id_int(C.int(nuc)))
}