Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed broken examples. Use of defer statement to ensure closing of Da…
…tabase and cleanup of statement.
- Loading branch information
jim teeuwen
committed
Dec 21, 2010
1 parent
b0cf472
commit b508896
Showing
4 changed files
with
106 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
include $(GOROOT)/src/Make.inc | ||
|
||
EXAMPLES = query reconnect statement | ||
|
||
all: $(EXAMPLES) | ||
|
||
query: | ||
$(GC) -o $(@).$(O) $(@).go | ||
$(LD) -s -o $(@) $(@).$(O) | ||
|
||
reconnect: | ||
$(GC) -o $(@).$(O) $(@).go | ||
$(LD) -s -o $(@) $(@).$(O) | ||
|
||
statement: | ||
$(GC) -o $(@).$(O) $(@).go | ||
$(LD) -s -o $(@) $(@).$(O) | ||
|
||
clean: | ||
rm -rf *.[568oa] $(EXAMPLES) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters