Documentation ¶
Index ¶
- Constants
- Variables
- type Candidate
- type Candidatura
- type Election
- func (e Election) CandidatesList() []Candidate
- func (e Election) Candidatures() []Candidatura
- func (e Election) ExportToFiles(fileExport func(interface{}, string) error) error
- func (e Election) MesasElectorais() []MesaElectoral
- func (e Election) String() string
- func (e Election) VotosMesasElectorais() []VotosMesaElectoral
- type MesaElectoral
- type VotosMesaElectoral
Constants ¶
View Source
const ( FicheiroControlPrefixo = "01" FicheiroIdentificacionPrefixo = "02" FicheiroCandidaturasPrefixo = "03" FicheiroListaCandidatosPrefix = "04" FicheiroDatosComunsConcellosPrefixo = "05" MunicipalitiesCandidaturesDataFilePrefix = "06" MunicipalitiesSuperiorScopeCommonDataFilePrefix = "07" MunicipalitiesSuperiorScopeCandidaturesDataFile = "08" TablesAndCeraCommonDataFilePrefix = "09" TablesAndCeraCandidaturesDataFilePrefix = "10" MunicipalitiesSmallerThan250CommonDataFilePrefix = "1104" MunicipalitiesSmallerThan250CandidaturesDataFilePrefix = "1204" JudicialDistrictCommonDataFilePrefix = "0510" JudicialDistrictCandidaturesDataFilePrefix = "0610" ProvincialCouncilCommonDataFilePrefix = "0710" ProvincialCouncilCandidaturesDataFilePrefix = "0810" )
View Source
const ( Referendum = 1 Congreso = 2 Senado = 3 Municipais = 4 ComunidadesAutonomas = 5 Cabildos = 6 ParlamentoEuropeo = 7 XuntasXerais = 15 )
Variables ¶
View Source
var ElectionTypeLabel = map[int]string{ Referendum: "Referéndum", Congreso: "Congreso", Senado: "Senado", Municipais: "Municipais", ComunidadesAutonomas: "Comunidades Autónomas", Cabildos: "Cabildos", ParlamentoEuropeo: "Parlamento Europeo", XuntasXerais: "Xuntas Xeráis", }
Functions ¶
This section is empty.
Types ¶
type Candidatura ¶
type Election ¶
type Election struct { Type int Scope int Date time.Time // contains filtered or unexported fields }
func NewElection ¶
func NewElection(zipFile *archive_reader.ZipFile) Election
func (Election) CandidatesList ¶
func (Election) Candidatures ¶
func (e Election) Candidatures() []Candidatura
func (Election) ExportToFiles ¶
func (Election) MesasElectorais ¶
func (e Election) MesasElectorais() []MesaElectoral
func (Election) VotosMesasElectorais ¶
func (e Election) VotosMesasElectorais() []VotosMesaElectoral
type MesaElectoral ¶
Click to show internal directories.
Click to hide internal directories.