payment

package
v0.0.0-...-b080cc2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Max

func Max(payments []types.Payment) types.Payment
Example
payments := []types.Payment{
	{
		ID:     1,
		Amount: 10_000_00,
	},
	{
		ID:     2,
		Amount: 5_000_00,
	},
	{
		ID:     3,
		Amount: 10_000_00,
	},
}
max := Max(payments)
fmt.Println(max.ID)
Output:

1

Types

This section is empty.

Jump to

Keyboard shortcuts

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