Skip to content

Instantly share code, notes, and snippets.

View fujimaki-k's full-sized avatar

fujimaki-k fujimaki-k

  • FujimakiShouten
View GitHub Profile
@fujimaki-k
fujimaki-k / concurrent.go
Created May 3, 2023 02:43
Concurrent example
package main
import (
"errors"
"fmt"
"runtime"
"sync"
)
// Concurrent is concurrently execute tasks for number of CPUs.
@fujimaki-k
fujimaki-k / concurrent.go
Created May 3, 2023 02:44
Alternative concurrent example
package main
import (
"errors"
"fmt"
"runtime"
"sync"
)
// Concurrent is concurrently execute tasks for number of CPUs.
@fujimaki-k
fujimaki-k / normalize.go
Created May 3, 2023 02:53
Unicode string normalization example
package main
import (
"fmt"
"regexp"
"strings"
"golang.org/x/text/unicode/norm"
)