feat: move languages to submodule;fix:storage:replace postgres query with array query when getting language

This commit is contained in:
dragonmuffin 2024-08-25 18:03:03 +05:00
parent 02a7a49ac3
commit b7147a2c19
6 changed files with 14 additions and 25 deletions

View file

@ -1,13 +0,0 @@
package models
type Language struct {
Name string
CompileCmd []string //source: src;result:executable
RunCmd []string //source: executable
}
var languages = [...]Language {
{Name : "gcc std=c90",
CompileCmd : []string{"gcc", "src","-std=c90","-o","executable"},
RunCmd : []string{"executable"}},
}