go tool pprofํ๋ก๊ทธ๋จ:- pprof ๋ฐ์ดํฐ๋ฅผ ๋ถ์ํ์ฌ ๋ณด์ฌ ์ฃผ๋ pprof ๋ฐ์ด๋๋ฆฌ๋ค.
runtime/pprofํจํค์ง:- Go ํ๋ก๊ทธ๋จ์ผ๋ก๋ถํฐ pprof ๋ฐ์ดํฐ๋ฅผ ์์ฑํ์ฌ ๋ด๋ณด๋ด๋ ์ผ์ ํ๋ ํจํค์ง๋ค.
net/http/pprofํจํค์ง:runtime/pprofํจํค์ง๊ฐ ํ๊ณ ์๋ ๊ฒ์ (ServeHTTP๋ก) ์น์ผ๋ก ๋ด๋ณด๋ด๊ฑฐ๋ ํ๋ก๊ทธ๋จ์ pprof ๋ฐ์ดํฐ๋ฅผ ๋ถ์ํ์ฌ ์น ์ธํฐํ์ด์ค๋ก ๋ณด์ฌ ์ฃผ๋ ์ผ์ ํ๋ ํจํค์ง๋ค.
| let mapleader = "," | |
| filetype on | |
| filetype indent on | |
| filetype plugin on | |
| set encoding=UTF-8 | |
| syntax on | |
| set nocompatible |
| <html> | |
| <head> | |
| <script src="https://unpkg.com/axios/dist/axios.min.js"></script> | |
| <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> | |
| </head> | |
| <body> | |
| <table class="table"> | |
| <thead> | |
| <th>id</th> | |
| <th>email</th> |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
์์ด์ง๋ง, ์กฐ๊ธ ๋ ์์ธํ๊ฒ ๋งํฌ๋ค์ด ์ฌ์ฉ๋ฒ์ ์๋ดํ๊ณ ์๋
"Markdown Guide (https://www.markdownguide.org/)" ๋ฅผ ๋ณด์๋ ๊ฒ์ ์ถ์ฒํฉ๋๋ค. ^^
์, ๊ทธ๋ฆฌ๊ณ ๋งํฌ๋ค์ด๋ง์ผ๋ก ํํ์ด ๋ถ์กฑํ๋ค๊ณ ๋๋ผ์ ๋ค๋ฉด, HTML ํ๊ทธ๋ฅผ ํ์ฉํ์๋ ๊ฒ๋ ์ข์ต๋๋ค.
This page collects common comments made during reviews of Go code, so that a single detailed explanation can be referred to by shorthands. This is a laundry list of common mistakes, not a style guide.
You can view this as a supplement to http://golang.org/doc/effective_go.html.
Please discuss changes before editing this page, even minor ones. Many people have opinions and this is not the place for edit wars.
| if _, err := os.Stat("/path/to/whatever"); os.IsNotExist(err) { | |
| // path/to/whatever does not exist | |
| } | |
| if _, err := os.Stat("/path/to/whatever"); !os.IsNotExist(err) { | |
| // path/to/whatever exists | |
| } |