- on macos: ** brew cask install minikube ** minikube start
- kubectl create secret generic mysql-pass --from-literal=password=YOUR_PASSWORD
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"time" | |
) | |
type Game struct { | |
Welcome string |
package main | |
import ( | |
"net/http" | |
"testing" | |
"net/http/httptest" | |
) | |
func TestHealthCheckHandler(t *testing.T) { | |
// Create a request to pass to our handler. We don't have any query parameters for now, so we'll |
from alpine:latest | |
COPY main / | |
CMD [ "./main" ] |
package main | |
import ( | |
"fmt" | |
"github.com/aws/aws-sdk-go/aws" | |
"github.com/aws/aws-sdk-go/aws/session" | |
"github.com/aws/aws-sdk-go/service/sqs" | |
"os" | |
"flag" | |
) |
package main | |
import ( | |
"bufio" | |
"context" | |
"crypto/rand" | |
"flag" | |
"fmt" | |
"io" | |
"log" |
package mongo | |
import ( | |
"time" | |
"log" | |
"gopkg.in/mgo.v2" | |
"gopkg.in/mgo.v2/bson" | |
) | |
// Profile - is the memory representation of one user profile |
import json | |
from json import JSONEncoder | |
class Student: | |
def __init__(self, first_name, last_name): | |
self._first_name = first_name | |
self._last_name = last_name | |
@property |
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"os" | |
"time" | |
) | |
// Card holds the card suits and types in the deck |
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"os" | |
"sort" | |
"time" | |
) |