Go launched http2 0 request flow analysis (later) - header compression

Reading suggestions This is HTTP 2 0 series, the author recommends reading in the following order: HTTP request in Go -- http1 1 request process analysis Go launched http2 0 request process analysis (previous) Go launched http2 0 request flow analysis (Part 2) -- data frame & flow control review In the previous article (* http2clientco ...

Posted by brandone on Mon, 16 May 2022 09:17:40 +0300

Solve the problem of go mod download dependency report 410 Gone error

background Manage dependency packages through go mod. Several dependencies are private warehouses. There is no problem downloading them before. I just upgraded the Go version to 13 recently. I found that I couldn't pull it down and reported 410 Gone. (in fact, the semantics of this error is the same as that of HTTP Code 410, indicating that the ...

Posted by pastet89 on Sat, 14 May 2022 06:34:06 +0300

[beego] routing settings of beego

beego has three routes: fixed route, regular route and automatic route   Basic routing Since beego version 1.2, it supports basic RESTful functional routing. Most routes in applications will be defined in {routes / router Go file. The simplest beego route consists of a URI and a closure function. Basic GET route beego.Get("/",func(ctx *contex ...

Posted by gusaps on Sat, 14 May 2022 02:59:29 +0300

Go Basics

Infrastructure In Go language, the infrastructure is as follows: package main // When the file is used as an executable instead of a module, it must be imported into main import "fmt" // Only global identifiers such as variables, constants and function names can be written outside the entry function func main(){ fmt.Println("HELLO,WORLD") / ...

Posted by Daniel0 on Sat, 14 May 2022 01:39:03 +0300

Learn git rebase. Just read this one

preface Hello, everyone, unknowingly, the eight day long holiday is coming to an end. After playing for so many days, I have to close my heart and start learning today. I'm going to work tomorrow. Today, my sister suddenly asked me what the GIT rebase instruction is for and how to use it? In fact, I don't want to tell him, but I still haven't e ...

Posted by lucasrd on Fri, 13 May 2022 06:40:13 +0300

Graphic packing of GoLang

Graphic packing of GoLang 1. Problem introduction We have introduced the data structure of the interface. Whether it is a null interface or a non null interface, they are essentially two pointers: one is related to the type metadata and the other is related to the data loaded by the interface. There is a question that needs to be exp ...

Posted by themaxx113 on Thu, 12 May 2022 22:04:12 +0300

01 . Go Gin+Vue develops an online takeout application

Project introduction We will start to develop an api project using the Gin framework, which we call cloud restaurant. Like hungry, meituan takeout and other life service applications, cloud restaurant is an online takeout application. Users of the application can browse merchants, goods and place orders online. The project is divided into clie ...

Posted by hilltopper06 on Mon, 09 May 2022 15:43:08 +0300

Hyperledger Fabric chain code development practice log

1. Overview of chain code structure Here, the development of chain code uses Go language. Therefore, we need to simply learn Go language first. It is a lightweight language. Interestingly, it has its own channel and can be concurrent, which is very suitable for the development of large-scale distributed systems. To Start the chain code, you mu ...

Posted by pmcconaghy on Mon, 09 May 2022 12:16:02 +0300

Simple design go AMQP

Warehouse address go get -u github.com/lazychanger/go-amqp matters needing attention rabbitmq separates the connection from the pipe, that is, connection and channel. Connection is an entity connection and channel is a logical connection. Therefore, when we use multithreading, it should be single connection + multiple channels After the connec ...

Posted by spudly on Sun, 08 May 2022 13:18:20 +0300

First attempt at HTTP2 server push

From the public account: New World Grocery Store In HTTP1.x, when accessing a page, the browser first obtains HTML resources, and then incrementally obtains other resources when parsing the page. The server must wait for the browser to issue a request before delivering the resources in the page. The server actually knows what resources are in t ...

Posted by evilMind on Sat, 07 May 2022 20:59:03 +0300