unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
blob a89d69b307c9426cdd18c3c6e689e0022fc94f6b 502 bytes (raw)
name: test/lisp/progmodes/go-ts-mode-resources/indent.erts 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
 
Code:
  (lambda ()
    (go-ts-mode)
    (indent-region (point-min) (point-max)))

Point-Char: |

Name: Basic

=-=
package main

func main() {
}
=-=-=

Name: Switch and Select

=-=
package main

func main() {
	var x any
	switch x {
	case 1:
		println("one")
	default:
		println("default case")
	}

	switch x.(type) {
	case int:
		println("integer")
	default:
		println("don't know the type")
	}

	var c chan int
	select {
	case x := <-c:
		println(x)
	default:
		println("no communication")
	}
}

=-=-=

debug log:

solving a89d69b307c ...
found a89d69b307c in https://git.savannah.gnu.org/cgit/emacs.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).