payroll

package
v0.0.0-...-ee0def0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PayDetails

func PayDetails(p Payer)

Types

type Developer

type Developer struct {
	Individual        Employee
	HourlyRate        float64
	HoursWorkedInYear float64
	Review            map[string]interface{}
}

func (Developer) Pay

func (d Developer) Pay() (string, float64)

func (Developer) ReviewRating

func (d Developer) ReviewRating() error

type Employee

type Employee struct {
	Id        int
	FirstName string
	LastName  string
}

type Manager

type Manager struct {
	Individual     Employee
	Salary         float64
	CommissionRate float64
}

func (Manager) Pay

func (m Manager) Pay() (string, float64)

type Payer

type Payer interface {
	Pay() (string, float64)
}

Jump to

Keyboard shortcuts

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