This file contains 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
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"strconv" | |
"time" | |
) | |
func main() { |
This file contains 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
package main | |
import ( | |
"bytes" | |
"encoding/binary" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"syscall" | |
"time" |
This file contains 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
package com.icexin; | |
import org.bouncycastle.asn1.ASN1Integer; | |
import org.bouncycastle.asn1.DERSequenceGenerator; | |
import org.bouncycastle.asn1.nist.NISTNamedCurves; | |
import org.bouncycastle.asn1.x9.X9ECParameters; | |
import org.bouncycastle.crypto.params.ECDomainParameters; | |
import org.bouncycastle.crypto.params.ECPrivateKeyParameters; | |
import org.bouncycastle.crypto.signers.ECDSASigner; | |
import org.bouncycastle.util.encoders.Hex; |
This file contains 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
package main | |
import ( | |
"context" | |
"fmt" | |
"net/http" | |
"net/url" | |
) | |
type contextKey int |
This file contains 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
package main | |
import "golang.org/x/sync/errgroup" | |
func doData1() (string, error) | |
func doData2() (string, error) | |
func doData3() (string, error) | |
func main() { | |
var data1, data2, data3 string |
This file contains 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
// 用于演示go里面如何动态向select添加channel | |
// 同时演示了网络编程框架里面EventLoop大概长啥样 | |
package main | |
import ( | |
"fmt" | |
"reflect" | |
"time" | |
) |