go-mutesting
go-mutesting copied to clipboard
Consider adding coloured output (i.e. via Chroma)
For better readability, compare (suggestion):
--- Original
+++ New
@@ -19,7 +19,7 @@
// UploadFile Upload a given file to the Media Endpoint
func UploadFile(accessToken string, endpoint string, filePath string) (*Response, error) {
if len(endpoint) == 0 {
- return nil, errors.New("the Micropub server does not advertise/support a Media Endpoint")
+ _ = errors.New
}
client := &http.Client{}
To (original):
--- Original
+++ New
@@ -19,7 +19,7 @@
// UploadFile Upload a given file to the Media Endpoint
func UploadFile(accessToken string, endpoint string, filePath string) (*Response, error) {
if len(endpoint) == 0 {
- return nil, errors.New("the Micropub server does not advertise/support a Media Endpoint")
+ _ = errors.New
}
client := &http.Client{}
We have an idea to make downloading a handy test report. Will this solve the problem or do you want to see beautiful output directly in the console?
Maybe it's a good start/move to use : https://github.com/charmbracelet/log 👍