golang echo

go echo 관련 URL :  https://lejewk.github.io/go-echo-request-param/ go echo official URL :  https://echo.labstack.com/docs/context go echo session example :  https://gowebexamples.com/sessions/?fbclid=IwAR1MJ504-gbdCRWhW81lUOVCWaxxpivaaICuVlBblPriWF-ji_8O_pKn9V8 binding json raw file  https://echo.labstack.com/docs/binding

멀티 실행 방지 코드 (CreateMutex)

win32 프로그램 안에 다음과 같이 넣어 주면 다중 실행을 막아준다.  CreateMutex 로 생성된 ID 값은, OpenMutex 를 통해서 ID 값이 dupicate 된지 확인해주는 역할을 한다. 즉, 두번째 실행되는 프로그램은 OpenMutex 를 실행시, 이미 ID 값이 있는 관계로 실행을 중단하게 된다. 

react step

1. install vscode 2. install node (https://nodejs.org/en/)  3. in cmd shell $npm install -g create-react-app $create-react-app my-first $cd my-app $npm start -> localhost:3000 그후 app.js 파일을 수정하면 된다. 

Linux 버전 확인법

 cat /etc/os-release

GIT

 1. GIT down load git clone [url]  2. GIT upload to local  git add .  git commit -m "init. code was added" 3. GIT upload to repository git push origin master

HDD add in Linux(fstab)

 1. 현재 파티션 확인하기 /sbin/fdisk -l 2. 파티션 추가하기  /sbin/fdisk /dev/sdb

vim setup (vimrc)

- 기본 설정 set ts=4 set tabstop=4 set shiftwidth=4 set expandtab set autoindent set hlsearch syntax on colors ron