bridgepattern

package
v0.0.0-...-0a00fa3 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMovieLicensePrice

func GetMovieLicensePrice(ml *MovieLicense) int

func PrintMovieLicense

func PrintMovieLicense(ml *MovieLicense)

Types

type Discount

type Discount int
const (
	Military Discount = iota + 1
	Seinor
)

type LicenseType

type LicenseType int
const (
	Fiveday LicenseType = iota + 1
	LifeLong
)

type MovieLicense

type MovieLicense struct {
	Name string
	Discount
	LicenseType
}

func NewMovieLicense

func NewMovieLicense(name string, discount Discount, licenseType LicenseType) *MovieLicense

func (*MovieLicense) GetBasePrice

func (ml *MovieLicense) GetBasePrice() int

func (*MovieLicense) GetDiscount

func (ml *MovieLicense) GetDiscount() int

func (*MovieLicense) GetPrice

func (ml *MovieLicense) GetPrice() int

Jump to

Keyboard shortcuts

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