Skip to content

Instantly share code, notes, and snippets.

View JenHsuan's full-sized avatar

Sean Hsieh JenHsuan

View GitHub Profile
@JenHsuan
JenHsuan / AnonymousPipes.cs
Created September 11, 2016 10:45 — forked from gogsbread/AnonymousPipes.cs
Anonymous pipes server and client examples.
using System;
using System.Diagnostics;
using System.IO;
using System.IO.Pipes;
namespace dotNetPlayGround
{
class AnonymousPipesServer
{
static void Main()
type car int
func (m car) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "text/html; charset=utf-8")
fmt.Fprintln(w, "<h1>car</h1>")
}
type plane int
func (m plane) ServeHTTP(w http.ResponseWriter, r *http.Request) {
package main
import (
"fmt"
"net/http"
"github.com/gorilla/mux"
)
func Car(w http.ResponseWriter, r *http.Request) {
package main
import (
"fmt"
"net/http"
"github.com/julienschmidt/httprouter"
)
func Car(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
package main
import (
"fmt"
"net/http"
"github.com/julienschmidt/httprouter"
)
type car int
package main
import (
"fmt"
"net/http"
)
type car int
func (m car) ServeHTTP(w http.ResponseWriter, r *http.Request) {
package main
import (
"fmt"
"net/http"
)
type car int
func (m car) ServeHTTP(w http.ResponseWriter, r *http.Request) {
package main
import (
"fmt"
"net/http"
)
func Cat(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Mcleod-Key", "this is from mcleod")
w.Header().Set("Content-Type", "text/html; charset=utf-8")
import (
"fmt"
"net/http"
"github.com/go-zoo/bone"
)
func Car(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Mcleod-Key", "this is from mcleod")
w.Header().Set("Content-Type", "text/html; charset=utf-8")
package main
import (
"fmt"
"net/http"
)
type car int
func (m car) ServeHTTP(w http.ResponseWriter, r *http.Request) {