What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-03-21 11:10:22
connect github to xcode
On github.com ============== 1. click ur profile > Settings 2. Scroll down to developer settings 3. Select Personal acces tokens 4. Generate new token & Write a title of usage (Note) 5. Check what you like to (Everthing is rrecommended) 6. Copy the... Add solution -
Other 2022-03-10 18:10:03
protocol buffers stream golang
package main import ( "context" "io" "log" pb "github.com/pramonow/go-grpc-server-streaming-example/src/proto" "google.golang.org/grpc" ) func main() { // dial server conn, err := grpc.Dial(&quo... Add solution -
Go 2022-03-02 10:40:01
bcrypt golang
package util import ( "github.com/sirupsen/logrus" "golang.org/x/crypto/bcrypt" ) func HashPassword(password string) string { pw := []byte(password) result, err := bcrypt.GenerateFromPassword(pw, bcrypt.DefaultCost) if err != ni... Add solution -
Other 2022-01-22 22:06:11
go gin unit test
// main.go package main import ( "net/http" "github.com/gin-gonic/gin" ) func HelloWorld(c *gin.Context) { c.JSON(http.StatusOK, gin.H{ "hello": "world", }) } func main() { router := gin.Default() router... Add solution -
Go 2021-11-13 13:07:19
webscraper using Go
# Web Scraper in Golang # source: golangcode.com/basic-web-scraper package main import ( "fmt" "log" "net/http" "github.com/PuerkitoBio/goquery" ) func main() { blogTitles, err := GetLatestBlogTitles(&quo... Add solution