Initial commit

This commit is contained in:
2014-08-24 19:56:55 +07:00
commit 509f281f72
11 changed files with 337 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
package logger
import (
"fmt"
"code.google.com/p/go.net/context"
)
func Call(ctx context.Context) context.Context {
results := ctx.Value("power_results").([]string)
id := ctx.Value("id").(string)
fmt.Println("Calculation result", id)
fmt.Println("Power results are:")
for _, r := range results {
fmt.Println(r)
}
return ctx
}