-
Notifications
You must be signed in to change notification settings - Fork 0
/
rakam.go
40 lines (36 loc) · 923 Bytes
/
rakam.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
/*
* Copyright (c) Portalnesia - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Written by Putu Aditya <aditya@portalnesia.com>
*/
package saka
type Rakam struct {
NujuPati Data
KalaTinantang Data
DemangKadhuruwan Data
SanggarWaringin Data
MantriSinaroja Data
MacanKatawan Data
}
func newRakam() Rakam {
return Rakam{
NujuPati: Data{0, "Nuju Pati"},
KalaTinantang: Data{1, "Kala Tinantang"},
DemangKadhuruwan: Data{2, "Demang Kadhuruwan"},
SanggarWaringin: Data{3, "Sanggar Waringin"},
MantriSinaroja: Data{4, "Mantri Sinaroja"},
MacanKatawan: Data{5, "Macan Katawan"},
}
}
func newRakamSlice() []Data {
data := newRakam()
return []Data{
data.NujuPati,
data.KalaTinantang,
data.DemangKadhuruwan,
data.SanggarWaringin,
data.MantriSinaroja,
data.MacanKatawan,
}
}