Before

1// +build windows
2
3package bbutil
4
5// Umask is a no-op on Windows, and calls syscall.Umask on all other
6// systems. On Windows it returns 0, which is a decoy.
7func Umask(mask int) int {
8 return 0o000
9}
10

After

1//go:build windows
2// +build windows
3
4package bbutil
5
6// Umask is a no-op on Windows, and calls syscall.Umask on all other
7// systems. On Windows it returns 0, which is a decoy.
…lines 8–11 unchanged (4 lines)

Before

source_file
comment "// +build windows"
package_clause
package "package"
package_identifier "bbutil"
comment "// Umask is a no-op on Windows, and calls syscall.Umask on a"...
comment "// systems. On Windows it returns 0, which is a decoy."
function_declaration
func "func"
identifier "Umask"
parameter_list
( "("
parameter_declaration
identifier "mask"
type_identifier "int"
) ")"
type_identifier "int"
block
{ "{"
statement_list
return_statement
return "return"
expression_list
int_literal "0o000"
} "}"

After

source_file
comment "//go:build windows"
comment "// +build windows"
package_clause
package "package"
package_identifier "bbutil"
comment "// Umask is a no-op on Windows, and calls syscall.Umask on a"...
comment "// systems. On Windows it returns 0, which is a decoy."
function_declaration
func "func"
identifier "Umask"
parameter_list
( "("
parameter_declaration
identifier "mask"
type_identifier "int"
) ")"
type_identifier "int"
block
{ "{"
statement_list
return_statement
return "return"
expression_list
int_literal "0o000"
} "}"