swi source.go switch statement