reorg

package
v4.1.23 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UINT   = reflect.TypeOf(uint(1)).Name()
	UINT8  = reflect.TypeOf(uint8(1)).Name()
	UINT16 = reflect.TypeOf(uint16(1)).Name()
	UINT32 = reflect.TypeOf(uint32(1)).Name()
	UINT64 = reflect.TypeOf(uint64(1)).Name()
	INT    = reflect.TypeOf(1).Name()
	INT8   = reflect.TypeOf(int8(1)).Name()
	INT16  = reflect.TypeOf(int16(1)).Name()
	INT32  = reflect.TypeOf(int32(1)).Name()
	INT64  = reflect.TypeOf(int64(1)).Name()
	FLOAT  = reflect.TypeOf(exampleFloat).Name()
	STRING = reflect.TypeOf("").Name()
)
View Source
var TIME = reflect.TypeOf(time.Time{}).Name()

Functions

func Import

func Import(reorgDir string, reimport, storeWithoutSymbol bool) error

Types

type Announcement

type Announcement struct {
	EntryDate               time.Time                     `reorg:"line:0 pos:64-72 format:01/02/06"`
	DealNumber              string                        `reorg:"line:1 pos:6-8"`
	TextNumber              int                           `reorg:"line:1 pos:16-23"`
	Remarks                 string                        `reorg:"line:1 pos:33-45"`
	NotificationType        announcement.NotificationType `reorg:"line:1 pos:53 format:%c"`
	Status                  announcement.StatusCode       `reorg:"line:1 pos:54 format:%c"`
	UpdatedNotificationType announcement.NotificationType `reorg:"line:1 pos:55 format:%c"`
	NrOfOptions             string                        `reorg:"line:1 pos:56"`
	SecurityType            announcement.SecurityType     `reorg:"line:1 pos:57 format:%c"`
	EffectiveDate           time.Time                     `reorg:"line:1 pos:64-72 format:01/02/06"`
	TargetCusip             string                        `reorg:"line:2 pos:7-16"`
	TargetDescription       string                        `reorg:"line:2 pos:19-29"`
	InitiatingCusip         string                        `reorg:"line:2 pos:36-45"`
	InitiatingDescription   string                        `reorg:"line:2 pos:48-58"`
	ExpirationDate          time.Time                     `reorg:"line:2 pos:64-72 format:01/02/06"`
	Cash                    float64                       `reorg:"line:3 pos:5-15"`
	CashCode                string                        `reorg:"line:3 pos:19"`
	StateCode               string                        `reorg:"line:3 pos:30-32"`
	RecordDate              time.Time                     `reorg:"line:3 pos:64-72 format:01/02/06"`
	Rate                    float64                       `reorg:"line:4 pos:6-15"`
	RateCode                string                        `reorg:"line:4 pos:19"`
	VoluntaryMandatoryCode  announcement.ActionCode       `reorg:"line:4 pos:33 format:%c"`
	UpdateTextNumber        int                           `reorg:"func:ParseUpdateTextNumber"`
	DeleteTextNumber        int                           `reorg:"func:ParseDeleteTextNumber"`
	NewRate                 float64                       `reorg:"func:ParseNewRate"`
	OldRate                 float64                       `reorg:"func:ParseOldRate"`
	DueRedemptionDate       time.Time                     `reorg:"func:ParseDueRedemptionDate"`
}

func (Announcement) Is

nolint:gocritic // TODO: refactor (change Announcement -> *Announcement and related code using lots of reflection)

func (Announcement) ParseDeleteTextNumber

func (i Announcement) ParseDeleteTextNumber(lines []string) string

nolint:gocritic // TODO: refactor (change Announcement -> *Announcement and related code using lots of reflection)

func (Announcement) ParseDueRedemptionDate

func (i Announcement) ParseDueRedemptionDate(lines []string) string

nolint:gocritic //TODO: refactor (change Announcement -> *Announcement and related code using lots of reflection)

func (Announcement) ParseNewRate

func (i Announcement) ParseNewRate(lines []string) string

nolint:gocritic // TODO: refactor (change Announcement -> *Announcement and related code using lots of reflection)

func (Announcement) ParseOldRate

func (i Announcement) ParseOldRate(lines []string) string

nolint:gocritic // TODO: refactor (change Announcement -> *Announcement and related code using lots of reflection)

func (Announcement) ParseUpdateTextNumber

func (i Announcement) ParseUpdateTextNumber(lines []string) string

nolint:gocritic // TODO: refactor (change Announcement -> *Announcement and related code using lots of reflection)

Jump to

Keyboard shortcuts

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