Golang repository pattern
https://threedots.tech/post/repository-pattern-in-go/
main.go
modules/
|- auth/
|- http/
|- handler.go
// Golang client library for Firebase Cloud Messaging. | |
// It uses Firebase Cloud Messaging HTTP protocol: https://firebase.google.com/docs/cloud-messaging/http-server-ref. | |
package fcm | |
import ( | |
"bytes" | |
"encoding/json" | |
"errors" | |
"fmt" | |
"net/http" |
import 'package:flutter/material.dart'; | |
class GoogleMapsClonePage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
body: Stack( | |
children: <Widget>[ | |
CustomGoogleMap(), | |
CustomHeader(), |
{ | |
"emojis": [ | |
{"emoji": "👩👩👧👧", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "👩‍👩‍👧‍👧", "category": "People & Body (family)", "order": ""}, | |
{"emoji": "👩👩👧👦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "👩‍👩‍👧‍👦", "category": "People & Body (family)", "order": ""}, | |
{"emoji": "👩👩👦👦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "👩‍👩‍👦‍👦", "category": "People & Body (family)", "order": ""}, | |
{"emoji": "👨👩👧👧", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "👨‍👩&z |
import 'dart:ui' as ui; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
/// Applies a color filter before painting its child. | |
class ColorFiltered extends SingleChildRenderObjectWidget { | |
/// Creates a widget that color filters its child. | |
/// | |
/// The [colorFilter] argument must not be null. | |
const ColorFiltered({ |
``` | |
import 'dart:async'; | |
import 'package:rxdart/rxdart.dart'; | |
void main() { | |
var streamCtrl = PublishSubject<String>(); | |
streamCtrl.stream.listen(observer1); | |
streamCtrl.stream.listen(observer2); | |
action(streamCtrl.sink); | |
} |
{ | |
"AWSAccountActivityAccess": { | |
"Arn": "arn:aws:iam::aws:policy/AWSAccountActivityAccess", | |
"AttachmentCount": 0, | |
"CreateDate": "2015-02-06T18:41:18+00:00", | |
"DefaultVersionId": "v1", | |
"Document": { | |
"Statement": [ | |
{ | |
"Action": [ |
Golang repository pattern
https://threedots.tech/post/repository-pattern-in-go/
main.go
modules/
|- auth/
|- http/
|- handler.go
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
A collection of links to the "Master the JavaScript Interview" series of medium stories by Eric Elliott.
package main | |
import ( | |
"fmt" | |
"labix.org/v2/mgo" | |
"labix.org/v2/mgo/bson" | |
"time" | |
) | |
type Person struct { |