Permalink
Browse files

[-] Makefiles

  • Loading branch information...
cthulhu committed May 23, 2014
1 parent 7f12313 commit 06b9731f3c716c67260b703464adbfa8dbe06720
View
@@ -1,6 +0,0 @@
-include $(GOROOT)/src/Make.inc
-
-TARG=hello_world
-GOFILES=hello_world.go
-
-include $(GOROOT)/src/Make.cmd
View
@@ -1,6 +0,0 @@
-include $(GOROOT)/src/Make.inc
-
-TARG=functions
-GOFILES=functions.go
-
-include $(GOROOT)/src/Make.cmd
@@ -1,10 +0,0 @@
-include $(GOROOT)/src/Make.inc
-
-TARG=factorial_example
-
-GOFILES=\
- main.go\
-
-include $(GOROOT)/src/Make.cmd
-
-
@@ -1,14 +0,0 @@
-include $(GOROOT)/src/Make.inc
-
-TARG=factorial
-GOFMT=gofmt -spaces=true -tabindent=false -tabwidth=4
-
-GOFILES=\
- factorial.go\
-
-include $(GOROOT)/src/Make.pkg
-
-format:
- ${GOFMT} -w factorial.go
- ${GOFMT} -w main.go
-
@@ -1,7 +1,7 @@
package main
import formated_output "fmt"
-import "factorial"
+import "./factorial"
func main() {
formated_output.Printf( "Packeges samples \n");
View
@@ -1,6 +0,0 @@
-include $(GOROOT)/src/Make.inc
-
-TARG=arrays
-GOFILES=arrays.go
-
-include $(GOROOT)/src/Make.cmd
View
@@ -60,7 +60,7 @@ func main() {
fmt.Printf( "Array size is %d\n", len( ar7 ) );
// sorting
- sort.SortInts( ar7 );
+ sort.Ints( ar7 );
fmt.Println( ar7 );
}
View
@@ -1,6 +0,0 @@
-include $(GOROOT)/src/Make.inc
-
-TARG=slices
-GOFILES=slices.go
-
-include $(GOROOT)/src/Make.cmd
View
@@ -1,6 +0,0 @@
-include $(GOROOT)/src/Make.inc
-
-TARG=maps
-GOFILES=maps.go
-
-include $(GOROOT)/src/Make.cmd
View
@@ -44,7 +44,7 @@ func main() {
fmt.Println( "Value =", value, " Presence =", presence );
// deletion element
- m3["five"] = 5, false;
+ delete(m, "five");
value, presence = m3["five"];
fmt.Println( "Value =", value, " Presence =", presence );
View
@@ -1,7 +0,0 @@
-include $(GOROOT)/src/Make.inc
-
-TARG=structs
-
-GOFILES=structs.go super_point.go
-
-include $(GOROOT)/src/Make.cmd
View
@@ -2,26 +2,25 @@
package main
import fmt "fmt"
-
// struct type declaretion
-type Point struct { x, y float };
+type Point struct { x, y float32 };
type Point3d struct{
Point;
- z float;
+ z float32;
};
type Point4d struct{
Point3d;
- float; // have no idea how to call that dimension :)
+ float32; // have no idea how to call that dimension :)
};
func main( ){
fmt.Println( "Structs Lesson" );
// simple declaration
- var point struct { x, y float }
+ var point struct { x, y float32 }
point.x = 10; // simple accessing just like in C
point.y = 20; // simple accessing just like in C
// nice trick to see what inside the struct
@@ -6,10 +6,5 @@ type SuperPoint struct {
name string; // this doesn't
}
-// thats a trick to avoid troubles with linker
-// http://code.google.com/p/go/issues/detail?id=87&colspec=ID%20Type%20Status%20Owner%20Reporter%20Summary
-func FixerOfIssue87() {
-
-}
View
@@ -1,10 +0,0 @@
-include $(GOROOT)/src/Make.inc
-
-TARG=factorial_example
-
-GOFILES=\
- main.go\
-
-include $(GOROOT)/src/Make.cmd
-
-

0 comments on commit 06b9731

Please sign in to comment.