- Apply consistent alignment for struct fields and parameters - Standardize string literal delimiters to single quotes - Refactor module import strategy in `models` package - Enhance asset formatting for precise decimal display - Remove unused imports and redundant `+}` syntax artifacts
22 lines
275 B
V
22 lines
275 B
V
module linux
|
|
|
|
@[heap]
|
|
pub struct LinuxFactory {
|
|
pub mut:
|
|
username string
|
|
}
|
|
|
|
@[params]
|
|
pub struct LinuxNewArgs {
|
|
pub:
|
|
username string
|
|
}
|
|
|
|
// return screen instance
|
|
pub fn new(args LinuxNewArgs) !LinuxFactory {
|
|
mut t := LinuxFactory{
|
|
username: args.username
|
|
}
|
|
return t
|
|
}
|