Warning! This doc is pretty outdated, I'm rewriting it right now and I'll update this as soon as it's done.
First, install the Go compiler from Google's Go Website: https://golang.org/dl/
| /* | |
| * Verify GitHub webhook signature header in Node.js | |
| * Written by stigok and others (see gist link for contributor comments) | |
| * https://gist.github.com/stigok/57d075c1cf2a609cb758898c0b202428 | |
| * Licensed CC0 1.0 Universal | |
| */ | |
| const crypto = require('crypto') | |
| const express = require('express') | |
| const bodyParser = require('body-parser') |
| // Mixin like functionality | |
| const textInput = props => ` | |
| color: ${props.error ? color.white : color.base}; | |
| background-color: ${props.error ? color.alert : color.white}; | |
| `; | |
| export const Input = styled.input` | |
| ${textInput} | |
| `; |
First, install the Go compiler from Google's Go Website: https://golang.org/dl/