← all fixtures
go-stackexchange-blackbox-add-comment
Go
View before/after files on GitHub
Upstream commit StackExchange-blackbox@4cb3808
pkg/bbutil/umask_windows.go
●
unmarked
●
matched
●
updated
●
matched, not identical
●
moved, unchanged
●
deleted
●
inserted
any 3:2
multi-map group: any pairing of the 3 with the 2 is valid, one is shown
all 3:1
all-to-all group: each of the 3 corresponds to the 1
inserted
deleted
updated
moved
click a highlight to reveal its counterpart
Split
Code
Tree
Before
1
// +build windows
2
3
package 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.
7
func Umask(mask int) int {
8
return 0o000
9
}
10
After
1
//go:build windows
2
// +build windows
3
4
package 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"
} "}"
Keybindings
j / k
next / previous visible node (tree panels)
h / l
collapse / expand the focused node
g / G
jump to first / last visible node
Tab
switch focus between Before/After panels
/
search: jump to next node whose text contains a given string
a
jump the other panel to this node's mapped counterpart
i
hide identical matches, showing only inserted/deleted/updated nodes and their ancestors
v
cycle the view: split / code only / tree only
p
cycle what the code view renders: the node mapping, then each human painting
r
mark this fixture as reviewed, or forget the mark (kept in this browser only)
n
open a random fixture not yet marked as reviewed
?
toggle this help
Search (plain substring, no regex):