entity

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportCSV

func ExportCSV(data []*TokyoData) ([]byte, error)

ExportCSV function returns CSV string from list of WHOGlobalData.

func ExportJSON

func ExportJSON(data []*TokyoData) ([]byte, error)

ExportJSON function returns JSON string from list of TokyoData.

Types

type TokyoData

type TokyoData struct {
	Date         values.Date //発生日付
	LocalGovCode string      //地方公共団体コード
	Address      string      //対象者の居住地
	Age          string      //対象者の年代
	Gender       string      //対象者の性別
	LeaveFlag    string      //退院フラグ(1:退院または死亡)
}

WHOGlobalData is entity class for Tokyo COVID-19 patients data

func New

func New(date, localGovCode, address, age, gender, leaveFlag string) (*TokyoData, error)

func (*TokyoData) CheckFilter

func (d *TokyoData) CheckFilter(filter *filter.Filters) bool

CheckFilter method returns true if cheking filter is OK.

Jump to

Keyboard shortcuts

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