icp-filing

ICP-filing

Go Reference icp-filing GitHub GitHub go.mod Go version (branch)

Domain name information filing

Installation

go get -u -v github.com/houseme/icp-filing@main 

Usage

package main

import (
    "context"
    "fmt"
    
    filing "github.com/houseme/icp-filing"
    "github.com/houseme/icp-filing/utility/logger"
    "github.com/houseme/icp-filing/utility/request"
)

func main() {
    ctx := context.Background()
    f := filing.New(ctx, filing.WithLogger(logger.NewDefaultLogger()), filing.WithRequest(request.NewDefaultRequest()))
    resp, err := f.DomainFilling(ctx, &filing.QueryRequest{
        UnitName: "baidu.com",
    })
    if err != nil {
        panic(err)
    }
    
    fmt.Println("resp:", resp)
}

Note:

The default logging dependency in the current project requires Go version 1.21.0 or above.

License

FeiE is primarily distributed under the terms of both the Apache License (Version 2.0)