Golang repository pattern
https://threedots.tech/post/repository-pattern-in-go/
main.go
modules/
|- auth/
|- http/
|- handler.go
| package main | |
| import ( | |
| // "errors" | |
| "fmt" | |
| "log" | |
| "time" | |
| // "sync" |
| import 'package:flutter/material.dart'; | |
| class GoogleMapsClonePage extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return Scaffold( | |
| body: Stack( | |
| children: <Widget>[ | |
| CustomGoogleMap(), | |
| CustomHeader(), |
| ``` | |
| 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.
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
https://github.com/potherca-blog/StackOverflow/blob/master/question.13808020.include-an-svg-hosted-on-github-in-markdown/readme.md
The purpose of raw.github.com is to allow users to view the contents of a file, so for text based files (SVG, JS, CSS, etc) this means you get the wrong headers and things break in the browser.
| // https://dartpad.dartlang.org/1a5cf346acdf08979574adabdd3d59db | |
| import 'package:flutter/material.dart'; | |
| import 'dart:math'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { |