This file contains hidden or 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
| # golang image where workspace (GOPATH) configured at /go. | |
| FROM golang:latest | |
| # Copy the local package files to the container’s workspace. | |
| ADD . /go/src/github.com/shijuvar/golang-docker | |
| # Build the golang-docker command inside the container. | |
| RUN go install github.com/shijuvar/golang-docker | |
| # Run the golang-docker command when the container starts. |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "log" | |
| "net/http" | |
| ) | |
| func helloHandler(res http.ResponseWriter, req *http.Request) { |
This file contains hidden or 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
| public class MobileServiceRequestHelper<T> where T : class | |
| { | |
| private string tableEndpoint; | |
| private string applicationKey; | |
| private HttpClient client; | |
| public MobileServiceRequestHelper(string tableName) | |
| { | |
| tableEndpoint = ConfigurationManager.AppSettings["TableEndpoint"] + tableName ; | |
| applicationKey = ConfigurationManager.AppSettings["X-ZUMO-APPLICATION"]; | |
| client = new HttpClient(); |
NewerOlder