All of the following information is based on go version go1.8.3 darwin/amd64.
(Bold = supported by go out of the box, ie. without the help of a C compiler, etc.)
androiddarwin
| using Foundation; | |
| using UIKit; | |
| namespace YourApp | |
| { | |
| [Register ("AppDelegate")] | |
| public partial class AppDelegate : UIApplicationDelegate | |
| { | |
| NSObject _screenshotNotification = null; |
| /* | |
| Author: https://github.com/gorhill | |
| Source: https://gist.github.com/gorhill/5285193 | |
| A Go function to render a number to a string based on | |
| the following user-specified criteria: | |
| * thousands separator | |
| * decimal separator |
| -- Adapted from http://coussej.github.io/2015/09/15/Listening-to-generic-JSON-notifications-from-PostgreSQL-in-Go/ | |
| CREATE OR REPLACE FUNCTION notify_event() RETURNS TRIGGER AS $$ | |
| DECLARE | |
| data JSON; | |
| notification JSON; | |
| BEGIN | |
| -- Skip notification if row doesn't actually change in UPDATE. | |
| -- We can accomplish the same thing with a WHERE clause in the CREATE TRIGGER statement, | |
| -- but only if the trigger watches exclusively for UPDATE events. |
This section contains getting started tutorials that provide a quick overview for working with our components. The goal is to get you up and running as soon as possible.
Grid
Picking the right architecture = Picking the right battles + Managing trade-offs
| *.swp | |
| *.*~ | |
| project.lock.json | |
| .DS_Store | |
| *.pyc | |
| # Visual Studio Code | |
| .vscode | |
| # User-specific files |
| /* | |
| Stores entries in a local SQLite database | |
| until they have been processed by a submit function. | |
| */ | |
| package journal | |
| import ( | |
| "database/sql" | |
| _ "github.com/mattn/go-sqlite3" | |
| "sync" |
| type errWriter struct { | |
| w io.Writer | |
| err error | |
| } | |
| func (e *errWriter) Write(p []byte) { | |
| if e.err != nil { | |
| return | |
| } | |
| _, e.err = e.w.Write(p) |
| { | |
| "manifest_version": 2, | |
| "name": "Chrome Socket API Server", | |
| "description": "listen & accept for socket", | |
| "version": "0.1", | |
| "app": { | |
| "background": { | |
| "scripts": ["server.js"] | |
| } | |
| }, |