mirror of
https://github.com/github/codeql.git
synced 2026-04-23 15:55:18 +02:00
Fix stub
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package env
|
||||
|
||||
type Options struct {}
|
||||
type Options struct{}
|
||||
|
||||
func Must[T any](t T, err error) T {
|
||||
if err != nil {
|
||||
@@ -14,11 +14,13 @@ func Parse(v interface{}) error {
|
||||
}
|
||||
|
||||
func ParseAs[T any]() (T, error) {
|
||||
return nil, nil
|
||||
var t T
|
||||
return t, nil
|
||||
}
|
||||
|
||||
func ParseAsWithOptions[T any](opts Options) (T, error) {
|
||||
return nil, nil
|
||||
var t T
|
||||
return t, nil
|
||||
}
|
||||
|
||||
func ParseWithOptions(v interface{}, opts Options) error {
|
||||
@@ -27,4 +29,4 @@ func ParseWithOptions(v interface{}, opts Options) error {
|
||||
|
||||
func ToMap(env []string) map[string]string {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user