Video : Go toolings
-
Formattor :
gofmt main.go
- to view diff use
-d
- to view diff use
-
to get all import inside a program :
goimports
-
to compile for windows :
GOOS=windows go build
Video : Go toolings
Formattor : gofmt main.go
-d
to get all import inside a program : goimports
to compile for windows : GOOS=windows go build
FROM node:15.12.0-alpine3.10 as build-stage | |
WORKDIR /app | |
COPY . ./ | |
RUN yarn install && yarn run build | |
FROM nginx as production-stage | |
RUN mkdir /app | |
COPY - from=build-stage /app/dist /app | |
COPY nginx.conf /etc/nginx/nginx.conf |
user nginx; | |
worker_processes 1; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include /etc/nginx/mime.types; | |
default_type application/octet-stream; |
mkdir -p /var/mongodb/db/{1,2,3}
sudo mkdir -p /var/mongodb/pki/
openssl rand -base64 741 > /var/mongodb/pki/m103-keyfile
chmod 400 /var/mongodb/pki/m103-keyfile
storage:
dbPath: /var/mongodb/db/1
#include <iostream> | |
using namespace std; | |
class BTreeNode | |
{ | |
int *keys; | |
int t; | |
BTreeNode **C; | |
int n; |