Documentation ¶ Index ¶ func Max(payments []types.Payment) types.Payment Examples ¶ Max 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. Source Files ¶ View all Source files payment.go Click to show internal directories. Click to hide internal directories.