-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f17436
commit 912cafc
Showing
3 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package compat | ||
|
||
// CompatibilityFlag is a type that represents a compatibility flag. | ||
type CompatibilityFlag string | ||
|
||
// Compatibility flags. | ||
type CompatibilityFlags []CompatibilityFlag | ||
|
||
// Compatibility flags. | ||
const ( | ||
// NodeJS compatibility flag. | ||
NodeJS CompatibilityFlag = "nodejs" | ||
) | ||
|
||
var Default = compatibilityFlags["2024-20-12"] | ||
|
||
var compatibilityFlags = map[string]CompatibilityFlags{ | ||
"2024-20-12": {NodeJS}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters