Skip to content
Snippets Groups Projects
Commit 9f146fc5 authored by Katrin Kober's avatar Katrin Kober
Browse files

Model package done

parent b070c01e
No related branches found
No related tags found
No related merge requests found
package myaktion
import (
"fmt"
)
func main() {
fmt.Println("Bloop")
}
package model
type Account struct {
Name string
BankName string
Number string
}
package model
type Campaign struct {
Name string
OrqanizerName string
TargetAmount float64
DonationMinimum float64
AmountDonatedSoFar float64
Donation []Donation
Account Account
}
package model
type Donation struct {
Amount float64
DonorName string
ReceiptRequested bool
Status Status
Account Account
}
type Status string
const (
TRANSFERRED Status = "TRANSFERRED"
IN_PROCESS Status = "IN_PROCESS"
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment