switch to go vendoring

This commit is contained in:
Michael Barz
2023-04-19 20:24:34 +02:00
parent 632fa05ef9
commit afc6ed1e41
8527 changed files with 3004916 additions and 2 deletions
+19
View File
@@ -0,0 +1,19 @@
package godata
import "context"
const (
ALLPAGES = "allpages"
NONE = "none"
)
func ParseInlineCountString(ctx context.Context, inlinecount string) (*GoDataInlineCountQuery, error) {
result := GoDataInlineCountQuery(inlinecount)
if inlinecount == ALLPAGES {
return &result, nil
} else if inlinecount == NONE {
return &result, nil
} else {
return nil, BadRequestError("Invalid inlinecount query.")
}
}