From 011e28a2e927f77eb3dcfee0569e8324d94f9c88 Mon Sep 17 00:00:00 2001 From: gilfoyle97 Date: Sun, 13 Feb 2022 12:43:31 +0100 Subject: [PATCH] Update check.go --- input/check.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/input/check.go b/input/check.go index 95db7ed..7af5b90 100644 --- a/input/check.go +++ b/input/check.go @@ -31,7 +31,9 @@ import ( "github.com/edoardottt/cariddi/utils" ) -//CheckDataPost > TODO +//CheckDataPost should take as input a string and checks +//if it's correctly formatted to be represented as post data +//TODO - for now cariddi sends only GET requests func CheckDataPost(input string) (map[string]string, error) { // ===== TODO ======= @@ -39,7 +41,7 @@ func CheckDataPost(input string) (map[string]string, error) { } //CheckOutputFile checks if the string provided as input -//is formatted in correct way. +//is formatted in a correct way. func CheckOutputFile(input string) bool { invalid := []string{"\\", "/", "'", "\""} for _, elem := range invalid { @@ -50,7 +52,7 @@ func CheckOutputFile(input string) bool { return true } -//CheckFlags checks the flags inputted +//CheckFlags checks the flags taken as input func CheckFlags(flags Input) { if flags.Txt != "" { if !CheckOutputFile(flags.Txt) {