models

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package models represents service common models.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Money

type Money struct {
	Amount   float64
	Currency string
}

Money model.

func NewMoney

func NewMoney(amount float64, currency string) Money

NewMoney constructor for Money.

func (Money) String

func (r Money) String() string

type ResultOutput

type ResultOutput struct {
	Message string
	Money
}

ResultOutput model.

func NewResultOutput

func NewResultOutput(msg string, m Money) ResultOutput

NewResultOutput constructor for ResultOutput.

func (ResultOutput) String

func (r ResultOutput) String() string

Jump to

Keyboard shortcuts

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