Added grpc web service

This commit is contained in:
2024-11-17 11:07:26 -05:00
parent 1f1cd68192
commit 1ad11d7e08
10 changed files with 590 additions and 30 deletions

View File

@@ -18,7 +18,8 @@ const (
)
func (g *Generator) StringToFormat(string string) (Format, error) {
switch strings.ToLower(string) {
s := strings.ToLower(string)
switch s {
case "jpg":
return JPG, nil
case "jpeg":
@@ -33,6 +34,8 @@ func (g *Generator) StringToFormat(string string) (Format, error) {
return GIF, nil
case "ico":
return ICO, nil
case "def":
case "default":
case "":
return DEF, nil
}