This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use hyper::service::service_fn_ok; | |
use hyper::{Body, Request, Response, Server, Client}; | |
use std::io::{self, Write}; | |
use hyper::rt::{self, Stream}; | |
use futures::future::{self, Future}; | |
const PHRASE: &str = "Hello, World!"; | |
fn hello_world(_req: Request<Body>) -> Response<Body> { | |
rt::spawn(rt::lazy(|| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use core::borrow::Borrow; | |
use std::io::{self, Write}; | |
use std::mem; | |
fn main() { | |
loop { | |
print!(">> "); | |
io::stdout().flush().unwrap(); | |
let mut code = String::new(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Component} from '@angular/core'; | |
import {async, ComponentFixture, TestBed} from '@angular/core/testing'; | |
// コンポーネントの定義 | |
@Component({ | |
selector: 'parent-component', | |
template: '<p>parent component working.</p>' | |
}) | |
class ParentComponent { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package repository | |
import ( | |
"reflect" | |
"google.golang.org/appengine/datastore" | |
"context" | |
"errors" | |
) | |
// 保存するデータの型 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package argumenter | |
import ( | |
"testing" | |
) | |
func BenchmarkValidReflect(b *testing.B) { | |
for i := 0; i < b.N; i++ { | |
m := MyArg{} | |
e := ValidReflect(m) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package argumenter | |
import ( | |
"fmt" | |
"reflect" | |
"strconv" | |
"strings" | |
) | |
/* |