-
Notifications
You must be signed in to change notification settings - Fork 0
/
helium.go
42 lines (34 loc) · 831 Bytes
/
helium.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package element
// Helium strtuct for helium element
type Helium struct{}
// GetPeriod returns the helium period
func (Helium) GetPeriod() string {
var p periodType = firstPeriod
return p.get()
}
// GetGroup returns the helium group
func (Helium) GetGroup() string {
var g groupType = a8
return g.get()
}
// GetCategory returns the helium category
func (Helium) GetCategory() string {
var c categoryType = nobleGas
return c.get()
}
// GetName returns the helium name
func (Helium) GetName() string {
return "Helium"
}
// GetSimbol returns helium simbol
func (Helium) GetSimbol() string {
return "He"
}
// GetAtomicNumber returns the helium atomic number
func (Helium) GetAtomicNumber() int {
return 2
}
// GetAtomicWeight returns the helium atomic weight
func (Helium) GetAtomicWeight() float32 {
return 4.0026
}