diff --git a/cmd/nolmandy/nolmandy_server.go b/cmd/nolmandy/nolmandy_server.go index 08624c3..70cd6f1 100644 --- a/cmd/nolmandy/nolmandy_server.go +++ b/cmd/nolmandy/nolmandy_server.go @@ -16,7 +16,7 @@ func main() { var certFileName string flag.IntVar(&port, "port", 8000, "Port to listen") - flag.StringVar(&certFileName, "certFile", "", "Cetificate file") + flag.StringVar(&certFileName, "certFile", "", "Certificate file") flag.Parse() diff --git a/receipt/model.go b/receipt/model.go index e081ab2..61928a4 100644 --- a/receipt/model.go +++ b/receipt/model.go @@ -102,7 +102,7 @@ type Receipt struct { OriginalPurchaseDate } -// InApp represents the recipt for in-app purchase +// InApp represents the receipt for in-app purchase // https://developer.apple.com/library/content/releasenotes/General/ValidateAppStoreReceipt/Chapters/ReceiptFields.html#//apple_ref/doc/uid/TP40010573-CH106-SW12 type InApp struct { Quantity int64 `json:"quantity,string"` @@ -129,7 +129,7 @@ type CreationDate struct { DatePST datePST `json:"receipt_creation_date_pst"` } -// RequestDate is the date when vefiry request was issued +// RequestDate is the date when verify request was issued type RequestDate struct { Date date `json:"request_date"` DateMS dateMS `json:"request_date_ms"` diff --git a/server/server.go b/server/server.go index bef8f7d..0a78133 100644 --- a/server/server.go +++ b/server/server.go @@ -16,7 +16,7 @@ type Request struct { Password string `json:"password"` } -// Serve is for serving receipt vefirification +// Serve is for serving receipt verification func Serve(port int, cert *x509.Certificate) { http.HandleFunc("/", Parse(cert)) log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", port), nil))