리스트는 점점 작은 부분을 설명할 때 사용합니다. 예를 들면
1.사람의 몸
1-1.머리
1-1-1.뇌
뇌는 말랑말랑하다. 그러하다
1-2.다리
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| ) | |
| func dumpMap(space string, m map[string]interface{}) { | |
| for k, v := range m { | |
| if mv, ok := v.(map[string]interface{}); ok { |
| #!/usr/bin/python | |
| import re | |
| import glob | |
| from mpyq import MPQArchive | |
| # CACHE_DIR = '/home/kk/.wine/drive_c/users/Public/Application Data/Blizzard Entertainment/Battle.net/Cache' | |
| CACHE_DIR = 'C:\ProgramData\Blizzard Entertainment\Battle.net\Cache' | |
| class SC2Map(object): |
| #!/bin/sh | |
| # Set up the Heroku scheduler to run this command every hour. See example setup at https://goo.gl/nMCSH3 | |
| # | |
| # Requires env vars to be set in Heroku with `heroku config:set`: | |
| # - HEROKU_APP_NAME: this is just the app name in Heroku, i.e. `heroku apps` will list all apps you have access to | |
| # - HEROKU_CLI_USER: Once Heroku CLI is authenticated (https://goo.gl/Qypr4x), check `cat .netrc` (or `_netrc` on Windows), | |
| # look for `login` under `machine api.heroku.com` | |
| # - HEROKU_CLI_TOKEN: As above, but use the `password` field | |
| # |
| package main | |
| import ( | |
| "strings" | |
| ) | |
| func main() { | |
| strings.HasSuffix("foobar", "bar") // true | |
| } |
| //Embed ... | |
| type Embed struct { | |
| *discordgo.MessageEmbed | |
| } | |
| // Constants for message embed character limits | |
| const ( | |
| EmbedLimitTitle = 256 | |
| EmbedLimitDescription = 2048 | |
| EmbedLimitFieldValue = 1024 |
| [Colors] | |
| AbstractTableViewBackgroundColor=#252526 | |
| AbstractTableViewHeaderTextColor=#000000 | |
| AbstractTableViewSelectionColor=#323238 | |
| AbstractTableViewSeparatorColor=#64646F | |
| AbstractTableViewTextColor=#E8EADE | |
| DisassemblyAddressBackgroundColor=#XXXXXX | |
| DisassemblyAddressColor=#BD63C5 | |
| DisassemblyAutoCommentBackgroundColor=#XXXXXX | |
| DisassemblyAutoCommentColor=#787878 |
| package main | |
| // More info on Getwd() | |
| // https://golang.org/src/os/getwd.go | |
| // | |
| import( | |
| "os" | |
| "fmt" | |
| "log" | |
| ) |
| package lpcwstr | |
| // #include <windows.h> | |
| // #include <wchar.h> | |
| // #include <WinNT.h> | |
| import "C" | |
| import ( | |
| "unicode/utf16" | |
| "unsafe" |