Skip to content

Commit b7297fe

Browse files
authored
Merge pull request #694 from devlights:add-result-in-example
Add result in examples (examples/basic/constants)
2 parents 9d75b75 + f235c47 commit b7297fe

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

examples/basic/constants/const_statement_declares.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,19 @@ func ConstStatementDeclares() error {
1818
fmt.Printf("Pi=%f, (%d, %d, %d)\n", Pi, Ng, Ok, Unknown)
1919

2020
return nil
21+
22+
/*
23+
$ task
24+
task: [build] go build .
25+
task: [run] ./try-golang -onetime
26+
27+
ENTER EXAMPLE NAME: const_statement_declare
28+
29+
[Name] "const_statement_declare"
30+
Pi=3.140000, (0, 1, 99)
31+
32+
33+
[Elapsed] 7.65µs
34+
*/
35+
2136
}

0 commit comments

Comments
 (0)