This commit is contained in:
Ed Minnix
2024-08-21 09:56:42 -04:00
parent 6fdff977e5
commit c2fa721966

View File

@@ -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
}
}