Skip to content

Commit aebaedb

Browse files
committed
update
1 parent c282663 commit aebaedb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

env.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ func UnmarshalEnv(v interface{}, prefix string) error {
3838
return unmarshalEnv(rv, prefix)
3939
}
4040

41+
// UnmarshalFile 从环境变量中赋值结构体
4142
func UnmarshalFile(v interface{}, prefix string, file string) error {
4243
data, err := os.ReadFile(file)
4344
if err != nil {

0 commit comments

Comments
 (0)