This file is indexed.

/usr/share/gocode/src/go.pedge.io/lion/example/current/main.go is in golang-go.pedge-lion-dev 0.0~git20171203.2a81062-5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
/*
Package main implements an example integration with Current.

https://current.sh

To use with syslog, run ./syslog.bash <org>.

To use with the current cli tool, run using ./stdout.bash <org>.

To output the debug messages, set the LOG_LEVEL environment variable to DEBUG.
*/
package main

import (
	"fmt"
	"os"

	"go.pedge.io/lion/env"
	"go.pedge.io/lion/proto"
)

func main() {
	if err := do(); err != nil {
		fmt.Fprintln(os.Stderr, err.Error())
		os.Exit(1)
	}
	os.Exit(0)
}

func do() error {
	if err := envlion.Setup(); err != nil {
		return err
	}
	for i := 1; i < 5; i++ {
		protolion.Info(
			&Foo{
				Bar: &Bar{
					One: "one",
				},
				Two:   fmt.Sprintf("two%d", i),
				Three: uint64(i),
			},
		)
		protolion.Debugf("hello%d", i*i*i)
	}
	return nil
}