package main
import (
"bytes"
"io"
"os"
"sync"
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
// 获取 cidr 所有 ip | |
package main | |
import ( | |
"net/netip" | |
) | |
func Hosts(cidr string) ([]netip.Addr, error) { | |
prefix, err := netip.ParsePrefix(cidr) | |
if err != nil { |
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
Still Gathering Statistics... |
func WithCancel(parent Context) (ctx Context, cancel CancelFunc)
package main
import (
"context"
"fmt"
func LookPath(file string) (string, error)
package main
import (
"fmt"
"log"
func Ext(path string) string
package main
import (
"fmt"
"path/filepath"
func After(d Duration) <-chan Time
package main
import (
"fmt"
"time"
func Float64s(a []float64)
package main
import (
"fmt"
"math"
func DecodeLastRune(p []byte) (r rune, size int)
package main
import (
"fmt"
"unicode/utf8"
https://golang.org/pkg/regexp/syntax/
func Match(pattern string, b []byte) (matched bool, err error)
package main
NewerOlder