Skip to content

Instantly share code, notes, and snippets.

@steviesama
Forked from denji/golang-tls.md
Last active July 29, 2020 09:54
Show Gist options
  • Save steviesama/fbc7d99553df7bfe1e50386a8d3f5557 to your computer and use it in GitHub Desktop.
Save steviesama/fbc7d99553df7bfe1e50386a8d3f5557 to your computer and use it in GitHub Desktop.
Simple Golang HTTPS/TLS Examples
{"lastUpload":"2019-08-06T13:04:39.979Z","extensionVersion":"v3.4.1"}
[
{
"metadata": {
"id": "1f0fa9a7-0fbe-4388-b246-56aa0680f319",
"publisherId": "bauhaus.antd-intellisense",
"publisherDisplayName": "bauhaus"
},
"name": "antd-intellisense",
"publisher": "bauhaus",
"version": "0.0.11"
},
{
"metadata": {
"id": "d3836729-9cc1-42c1-b2af-d50071f57d29",
"publisherId": "formulahendry.auto-close-tag",
"publisherDisplayName": "formulahendry"
},
"name": "auto-close-tag",
"publisher": "formulahendry",
"version": "0.5.6"
},
{
"metadata": {
"id": "366a9f01-2d1b-48b9-b7df-014ff8dea46b",
"publisherId": "formulahendry.auto-complete-tag",
"publisherDisplayName": "formulahendry"
},
"name": "auto-complete-tag",
"publisher": "formulahendry",
"version": "0.1.0"
},
{
"metadata": {
"id": "6e440e71-8ed9-4f25-bb78-4b13096b8a03",
"publisherId": "formulahendry.auto-rename-tag",
"publisherDisplayName": "formulahendry"
},
"name": "auto-rename-tag",
"publisher": "formulahendry",
"version": "0.1.0"
},
{
"metadata": {
"id": "697255a9-3f36-44c8-b084-d3b91edfb23a",
"publisherId": "HookyQR.beautify",
"publisherDisplayName": "HookyQR"
},
"name": "beautify",
"publisher": "HookyQR",
"version": "1.5.0"
},
{
"metadata": {
"id": "b689fcc8-d494-4dbf-a228-2c694a578afc",
"publisherId": "alefragnani.Bookmarks",
"publisherDisplayName": "alefragnani"
},
"name": "Bookmarks",
"publisher": "alefragnani",
"version": "10.4.4"
},
{
"metadata": {
"id": "f583eafd-aa0d-4ccb-8f44-d1e610389660",
"publisherId": "CoenraadS.bracket-pair-colorizer",
"publisherDisplayName": "CoenraadS"
},
"name": "bracket-pair-colorizer",
"publisher": "CoenraadS",
"version": "1.0.61"
},
{
"metadata": {
"id": "5a6e2b21-1d61-4acd-b31b-907f9c23f18a",
"publisherId": "CoenraadS.bracket-pair-colorizer-2",
"publisherDisplayName": "CoenraadS"
},
"name": "bracket-pair-colorizer-2",
"publisher": "CoenraadS",
"version": "0.0.28"
},
{
"metadata": {
"id": "2aa040bf-c73a-455d-8946-5c6cc83b8019",
"publisherId": "wmaurer.change-case",
"publisherDisplayName": "wmaurer"
},
"name": "change-case",
"publisher": "wmaurer",
"version": "1.0.0"
},
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "Shan.code-settings-sync",
"publisherDisplayName": "Shan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "3.4.1"
},
{
"metadata": {
"id": "121396ad-85a1-45ec-9fd1-d95028a847f5",
"publisherId": "naumovs.color-highlight",
"publisherDisplayName": "naumovs"
},
"name": "color-highlight",
"publisher": "naumovs",
"version": "2.3.0"
},
{
"metadata": {
"id": "1ec62ca5-d7f9-4ddb-a882-e8d018c0aefd",
"publisherId": "msjsdiag.debugger-for-chrome",
"publisherDisplayName": "msjsdiag"
},
"name": "debugger-for-chrome",
"publisher": "msjsdiag",
"version": "4.11.7"
},
{
"metadata": {
"id": "19804510-b475-4dae-b0f7-6ca08fd1af0c",
"publisherId": "dsznajder.es7-react-js-snippets",
"publisherDisplayName": "dsznajder"
},
"name": "es7-react-js-snippets",
"publisher": "dsznajder",
"version": "2.4.0"
},
{
"metadata": {
"id": "b3917e4f-5086-4def-a82b-2ae6b708db16",
"publisherId": "flowtype.flow-for-vscode",
"publisherDisplayName": "flowtype"
},
"name": "flow-for-vscode",
"publisher": "flowtype",
"version": "1.3.0"
},
{
"metadata": {
"id": "438221f8-1107-4ccd-a6fe-f3b7fe0856b7",
"publisherId": "mhutchie.git-graph",
"publisherDisplayName": "mhutchie"
},
"name": "git-graph",
"publisher": "mhutchie",
"version": "1.12.1"
},
{
"metadata": {
"id": "2335b326-c334-4e81-bc51-c408fcec6e7c",
"publisherId": "waderyan.gitblame",
"publisherDisplayName": "waderyan"
},
"name": "gitblame",
"publisher": "waderyan",
"version": "3.0.1"
},
{
"metadata": {
"id": "5960f38e-0bbe-4644-8f9c-9c8824e82511",
"publisherId": "donjayamanne.githistory",
"publisherDisplayName": "donjayamanne"
},
"name": "githistory",
"publisher": "donjayamanne",
"version": "0.4.6"
},
{
"metadata": {
"id": "4de763bd-505d-4978-9575-2b7696ecf94e",
"publisherId": "eamodio.gitlens",
"publisherDisplayName": "eamodio"
},
"name": "gitlens",
"publisher": "eamodio",
"version": "9.9.2"
},
{
"metadata": {
"id": "d6f6cfea-4b6f-41f4-b571-6ad2ab7918da",
"publisherId": "ms-vscode.Go",
"publisherDisplayName": "ms-vscode"
},
"name": "Go",
"publisher": "ms-vscode",
"version": "0.11.4"
},
{
"metadata": {
"id": "2a0c8638-adab-43b1-b168-974c9208f10d",
"publisherId": "766b.go-outliner",
"publisherDisplayName": "766b"
},
"name": "go-outliner",
"publisher": "766b",
"version": "0.1.20"
},
{
"metadata": {
"id": "9054b43a-5670-4616-8a43-afdf1d0a49e8",
"publisherId": "MaxMedia.go-prof",
"publisherDisplayName": "MaxMedia"
},
"name": "go-prof",
"publisher": "MaxMedia",
"version": "0.0.4"
},
{
"metadata": {
"id": "3b3d36c0-6af6-4ede-aaba-6f460423ddea",
"publisherId": "casualjim.gotemplate",
"publisherDisplayName": "casualjim"
},
"name": "gotemplate",
"publisher": "casualjim",
"version": "0.3.0"
},
{
"metadata": {
"id": "1bb92b2c-526c-4bfd-bb38-5bae1b278c89",
"publisherId": "leizongmin.node-module-intellisense",
"publisherDisplayName": "leizongmin"
},
"name": "node-module-intellisense",
"publisher": "leizongmin",
"version": "1.5.0"
},
{
"metadata": {
"id": "dff6b801-247e-40e9-82e8-8c9b1d19d1b8",
"publisherId": "christian-kohler.npm-intellisense",
"publisherDisplayName": "christian-kohler"
},
"name": "npm-intellisense",
"publisher": "christian-kohler",
"version": "1.3.0"
},
{
"metadata": {
"id": "a41c1549-4053-44d4-bf30-60fc809b4a86",
"publisherId": "christian-kohler.path-intellisense",
"publisherDisplayName": "christian-kohler"
},
"name": "path-intellisense",
"publisher": "christian-kohler",
"version": "1.4.2"
},
{
"metadata": {
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90",
"publisherId": "esbenp.prettier-vscode",
"publisherDisplayName": "esbenp"
},
"name": "prettier-vscode",
"publisher": "esbenp",
"version": "1.9.0"
},
{
"metadata": {
"id": "f1f59ae4-9318-4f3c-a9b5-81b2eaa5f8a5",
"publisherId": "ms-python.python",
"publisherDisplayName": "ms-python"
},
"name": "python",
"publisher": "ms-python",
"version": "2019.6.24221"
},
{
"metadata": {
"id": "4ef434e7-60b0-4c98-99d9-e82c67093516",
"publisherId": "OfHumanBondage.react-proptypes-intellisense",
"publisherDisplayName": "OfHumanBondage"
},
"name": "react-proptypes-intellisense",
"publisher": "OfHumanBondage",
"version": "1.0.3"
},
{
"metadata": {
"id": "ee108066-df8b-43ae-9a83-e6c11400a759",
"publisherId": "jasonnutter.search-node-modules",
"publisherDisplayName": "jasonnutter"
},
"name": "search-node-modules",
"publisher": "jasonnutter",
"version": "1.3.0"
},
{
"metadata": {
"id": "583b2b34-2c1e-4634-8c0b-0b82e283ea3a",
"publisherId": "dbaeumer.vscode-eslint",
"publisherDisplayName": "dbaeumer"
},
"name": "vscode-eslint",
"publisher": "dbaeumer",
"version": "1.9.0"
},
{
"metadata": {
"id": "7accc875-0223-4da4-bb87-412164d18c2b",
"publisherId": "howardzuo.vscode-git-tags",
"publisherDisplayName": "howardzuo"
},
"name": "vscode-git-tags",
"publisher": "howardzuo",
"version": "1.4.3"
},
{
"metadata": {
"id": "9ccc1dd7-7ec4-4a46-bd4f-7d7b8b9d322a",
"publisherId": "vscode-icons-team.vscode-icons",
"publisherDisplayName": "vscode-icons-team"
},
"name": "vscode-icons",
"publisher": "vscode-icons-team",
"version": "9.2.0"
},
{
"metadata": {
"id": "dd5a2c83-ad8c-4839-a529-0644e5acb646",
"publisherId": "mgmcdermott.vscode-language-babel",
"publisherDisplayName": "mgmcdermott"
},
"name": "vscode-language-babel",
"publisher": "mgmcdermott",
"version": "0.0.23"
},
{
"metadata": {
"id": "daf8b44d-8aae-4da2-80c5-1f770219f643",
"publisherId": "DavidAnson.vscode-markdownlint",
"publisherDisplayName": "DavidAnson"
},
"name": "vscode-markdownlint",
"publisher": "DavidAnson",
"version": "0.29.0"
},
{
"metadata": {
"id": "ae9e3eb0-3357-4cc0-90ee-598d2d384757",
"publisherId": "eg2.vscode-npm-script",
"publisherDisplayName": "eg2"
},
"name": "vscode-npm-script",
"publisher": "eg2",
"version": "0.3.8"
},
{
"metadata": {
"id": "beb68b20-7c55-471c-9b63-3486f9423566",
"publisherId": "mrmlnc.vscode-scss",
"publisherDisplayName": "mrmlnc"
},
"name": "vscode-scss",
"publisher": "mrmlnc",
"version": "0.6.2"
},
{
"metadata": {
"id": "6f5d4f30-67aa-4151-80c0-1bbe8ca5f9db",
"publisherId": "cssho.vscode-svgviewer",
"publisherDisplayName": "cssho"
},
"name": "vscode-svgviewer",
"publisher": "cssho",
"version": "2.0.0"
},
{
"metadata": {
"id": "9b2c953d-6ad4-46d1-b18e-7e5992d1d8a6",
"publisherId": "akamud.vscode-theme-onedark",
"publisherDisplayName": "akamud"
},
"name": "vscode-theme-onedark",
"publisher": "akamud",
"version": "2.1.0"
},
{
"metadata": {
"id": "97a08c5f-6667-4242-a5c5-045dfb6bd4b9",
"publisherId": "wayou.vscode-todo-highlight",
"publisherDisplayName": "wayou"
},
"name": "vscode-todo-highlight",
"publisher": "wayou",
"version": "1.0.4"
},
{
"metadata": {
"id": "876e8f93-74d0-4f4f-91b7-34a09f19f444",
"publisherId": "VisualStudioExptTeam.vscodeintellicode",
"publisherDisplayName": "VisualStudioExptTeam"
},
"name": "vscodeintellicode",
"publisher": "VisualStudioExptTeam",
"version": "1.1.8"
},
{
"metadata": {
"id": "5a6dc0d5-dc02-4121-8e24-cad33a2ff0af",
"publisherId": "ms-vsliveshare.vsliveshare",
"publisherDisplayName": "ms-vsliveshare"
},
"name": "vsliveshare",
"publisher": "ms-vsliveshare",
"version": "1.0.614"
}
]
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+down",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+down",
"command": "-editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+up",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+up",
"command": "-editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+meta+]",
"command": "bookmarks.jumpToNext",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+l",
"command": "-bookmarks.jumpToNext",
"when": "editorTextFocus"
},
{
"key": "ctrl+meta+[",
"command": "bookmarks.jumpToPrevious",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+j",
"command": "-bookmarks.jumpToPrevious",
"when": "editorTextFocus"
},
{
"key": "ctrl+k ctrl+z",
"command": "workbench.action.toggleZenMode"
},
{
"key": "ctrl+k z",
"command": "-workbench.action.toggleZenMode"
},
{
"key": "ctrl+k ctrl+v",
"command": "markdown.showPreviewToSide",
"when": "editorLangId == 'markdown'"
},
{
"key": "ctrl+k v",
"command": "-markdown.showPreviewToSide",
"when": "editorLangId == 'markdown'"
},
{
"key": "shift+meta+e",
"command": "workbench.view.explorer"
},
{
"key": "ctrl+shift+e",
"command": "-workbench.view.explorer"
},
{
"key": "ctrl+shift+meta+5",
"command": "editor.emmet.action.matchTag"
}
]
{
"window.zoomLevel": 2,
"workbench.colorTheme": "Atom One Dark",
"git.confirmSync": false,
"git.autofetch": true,
"go.lintOnSave": "off",
"go.vetOnSave": "off",
"[go]": {
"editor.formatOnSave": true
},
"editor.multiCursorModifier": "ctrlCmd",
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.detectIndentation": true,
"editor.renderWhitespace": "all",
"workbench.sideBar.location": "left",
"breadcrumbs.enabled": true,
"extensions.ignoreRecommendations": false,
"files.autoSave": "off",
"workbench.activityBar.visible": true,
"editor.renderControlCharacters": true,
"workbench.iconTheme": "vscode-icons",
"go.docsTool": "gogetdoc",
"vsicons.dontShowNewVersionMessage": true,
"sync.gist": "fbc7d99553df7bfe1e50386a8d3f5557"
}
{
// Place your snippets for go here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"append slice value": {
"prefix": "nx.append.slice",
"body": ["$1 = append($1, $2)$0"],
"description": "append slice value"
}
}
{
// Place your snippets for javascriptreact here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Bind func setup": {
"prefix": "nx.bind.func",
"body": ["this.$1 = this.$1.bind(this);$0"],
"description": "Bind func setup"
},
"nx double console.log call setup": {
"prefix": "nx.log",
"body": ["console.log(`$1`, $1);$0"],
"description": "nx double console.log call setup"
},
"Class function setup": {
"prefix": "nx.class.func",
"body": [
"$1($2) {",
" $0",
"} //End $1"
],
"description": "Class function setup"
},
"Function setup": {
"prefix": "nx.func",
"body": [
"function $1($2) {",
" $0",
"}; //End $1"
],
"description": "Function setup"
},
"Anonymous function setup": {
"prefix": "nx.anon",
"body": [
"var $1 = ($2) => {",
" $0",
"}; //End $1"
],
"description": "Anonymous function setup"
},
"nx Post call setup": {
"prefix": "nx.post",
"body": [
"nx.Equip.op({",
" endpoint: '$1',",
" method: 'POST',",
" data: {$2}",
"})$0;"
],
"description": "nx Post call setup"
},
"nx Delete call setup": {
"prefix": "nx.delete",
"body": [
"nx.Equip.op({",
" endpoint: '$1',",
" method: 'DELETE',",
" data: {",
" request: '$2',",
" $3",
" }",
"})$0;"
],
"description": "nx Delete call setup"
},
"nx Get call setup": {
"prefix": "nx.get",
"body": [
"nx.Equip.op({",
" endpoint: '$1',",
" method: 'GET',",
" data: {",
" data_type: '$2',",
" response_type: '$3',",
" filter_by: `$4`,",
" start_index: $5,",
" number_of_records: $6",
" }",
"}).then(data => {",
" $7 = JSON.parse(data).data;",
"})$0;"
],
"description": "nx Get call setup"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment