Skip to content

Instantly share code, notes, and snippets.

$ go get github.com/shimastripe/go-api-sokushukai
$ cd $GOPATH/src/github.com/shimastripe/go-api-sokushukai
$ go get ./...
$ go build -o bin/server
$ bin/server
# => http://localhost:8080/api/users?pretty
package models
import (
"reflect"
"strings"
)
func contains(ss []string, s string) bool {
for _, v := range ss {
if v == s {
#include <stdio.h>
#include <stdlib.h>
int sum(int*, int);
int ave(int*, int);
int min(int*, int);
int max(int*, int);
int main(void){
int n;
#include <stdio.h>
#include <math.h>
double hero(double a,double b,double c){
double s,T;
if(a+b<c || b+c<a || c+a<b){
return -1;
}else{
s=(a+b+c)/2;
T=sqrt(s*(s-a)*(s-b)*(s-c));