Skip to content

Instantly share code, notes, and snippets.

View thaihuynhxyz's full-sized avatar

Thai thaihuynhxyz

View GitHub Profile
package main
import (
"fmt"
"sync"
)
type Fetcher interface {
// Fetch returns the body of URL and
// a slice of URLs found on that page.
package main
import (
"golang.org/x/tour/tree"
"fmt"
)
// Walk walks the tree t sending all values
// from the tree to the channel ch.
func Walk(t *tree.Tree, ch chan int) {
@thaihuynhxyz
thaihuynhxyz / main.dart
Last active September 5, 2020 02:23 — forked from felangel/main.dart
[flutter_bloc_recipes] Navigation: Routes
import 'package:bloc/bloc.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:meta/meta.dart';
void main() {
runApp(
BlocProvider(
create: (context) => MyBloc(),
child: MyApp(),