utils

package
v0.0.0-...-5c5f30a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetFakeRecord = func() model.Record {
	var record model.Record
	recData := map[string]interface{}{
		"ID":         rand.Int63(),
		"LONG":       rand.Int63(),
		"LAT":        rand.Int63(),
		"SETCENS":    rand.Int63(),
		"AREAP":      rand.Int63(),
		"CODDIST":    strconv.Itoa(rand.Int()),
		"DISTRITO":   randSeqString(5),
		"CODSUBPREF": strconv.Itoa(rand.Int()),
		"SUBPREFE":   randSeqString(5),
		"REGIAO5":    randSeqString(5),
		"REGIAO8":    randSeqString(5),
		"NOME_FEIRA": randSeqString(5),
		"REGISTRO":   randSeqString(5),
		"LOGRADOURO": randSeqString(10),
		"NUMERO":     strconv.Itoa(rand.Int()),
		"BAIRRO":     randSeqString(5),
		"REFERENCIA": randSeqString(5),
	}
	rec, _ := record.FromRecordMap(recData)
	return rec
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL