Skip to content

Instantly share code, notes, and snippets.

package main
import (
"fmt"
"golang.org/x/text/encoding/japanese"
"golang.org/x/text/transform"
"io"
"log"
"os"
)
package main
import (
"net/http"
"os"
"log"
)
/**
http.Request はクライアントサーバ両方で使える
package main
import (
"context"
"time"
"sync"
"fmt"
)
func main() {
package main
import (
"context"
"sync"
"fmt"
"time"
)
func main() {
package main
import (
"sync"
"time"
"fmt"
)
/**
WaitGroup の使い方
package main
import (
"context"
"time"
"fmt"
"sync"
)
// try context.Deadline
package main
import (
"fmt"
)
/**
Channel では、channel の所有者と利用者(消費者)の役割分担をキチンとしておく。
*/
func main() {
package main
import (
"net/http"
"fmt"
"time"
)
func main() {
type Result struct {
package main
import (
"log"
"sync"
"time"
)
const (
MaxGoRoutine = 3
package main
import (
"fmt"
"net/http"
"os"
"io"
"context"
"time"
)