mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: require params
attribute to use struct as keyword arguments in function (#11135)
This commit is contained in:
@ -8,6 +8,7 @@ const (
|
||||
retries = 10000
|
||||
)
|
||||
|
||||
[params]
|
||||
pub struct TempFileOptions {
|
||||
path string = os.temp_dir()
|
||||
pattern string
|
||||
@ -44,6 +45,7 @@ pub fn temp_file(tfo TempFileOptions) ?(os.File, string) {
|
||||
' could not create temporary file in "$d". Retry limit ($util.retries) exhausted. Please ensure write permissions.')
|
||||
}
|
||||
|
||||
[params]
|
||||
pub struct TempDirOptions {
|
||||
path string = os.temp_dir()
|
||||
pattern string
|
||||
|
Reference in New Issue
Block a user