mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-12-26 03:51:45 +00:00
bugfix: JSON format, export and marshalling
This commit is contained in:
parent
0f175a0fee
commit
ed722f82e4
4
main.go
4
main.go
@ -13,7 +13,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Response struct {
|
type Response struct {
|
||||||
success bool
|
Success bool `json:"success"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Endpoint string
|
type Endpoint string
|
||||||
@ -151,7 +151,7 @@ func SendRequest(client *resty.Client, url string, ins []interface{}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Print response
|
// Print response
|
||||||
log.Printf("Success: %t\n", data.success)
|
log.Printf("Success: %t\n", data.Success)
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
Loading…
Reference in New Issue
Block a user