11 lines
153 B
Plaintext
11 lines
153 B
Plaintext
|
package testswitchdefault
|
||
|
|
||
|
templ template(input string) {
|
||
|
switch input {
|
||
|
case "a":
|
||
|
{ "it was 'a'" }
|
||
|
default:
|
||
|
{ "it was something else" }
|
||
|
}
|
||
|
}
|