This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class KeyCodes { | |
// Layout-independent Keys | |
// eg.These key codes are always the same key on all layouts. | |
public const ushort ReturnKey = 0x24; | |
public const ushort Enter = 0x4C; | |
public const ushort Tab = 0x30; | |
public const ushort Space = 0x31; | |
public const ushort Delete = 0x33; | |
public const ushort Escape = 0x35; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const checkBodyType = (body) => { | |
if(Array.isArray(body)) return 0; | |
else if(typeof body == "object") return 1; | |
else throw new Error("Unknown type of the body"); | |
} | |
const definePropertySettings = { configurable: true, enumerable: true, writable: true } | |
const deleteEmptyValues = (currentBody) => { | |
if(typeof currentBody === "string") currentBody = JSON.parse(currentBody); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"io/ioutil" | |
"net" | |
"net/http" | |
) |