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

Microservices have everything from code to k8s deployment (XIII. Service monitoring)

We will use a series to explain the complete practice of microservices from requirements to online, from code to k8s deployment, from logging to monitoring.The whole project uses the micro services developed by go zero, which basically includes go zero and some middleware developed by relevant go zero authors. The technology stack used is basic ...

Posted by tcr480 on Sat, 07 May 2022 06:12:12 +0300

go Language Advanced Programming RPC

RPC is the abbreviation of remote procedure call. It is a popular communication mode between different nodes in distributed system. In the Internet era, RPC has become an indispensable basic component like IPC. Therefore, the standard library of Go language also provides a simple RPC implementation. 1. RPC based on gob coding The path of the ...

Posted by dips_007 on Sat, 07 May 2022 06:06:40 +0300

Go micro integrated RabbitMQ practice and principle

In go micro, the sending and receiving of asynchronous messages is completed through the component of Broker. There are many ways to realize the bottom layer, such as RabbitMQ, Kafka, Redis and so on. This article mainly introduces the method and principle of sending and receiving data by using RabbitMQ in go micro. Core functions of Broker The ...

Posted by newzub on Sat, 07 May 2022 05:26:18 +0300

12 - interface type - 1 - use of interface

Interface interface Interface is a kind of constraint that both callers and implementers need to abide by. It restricts developers to deal with specific business according to unified method naming, parameter type and quantity. In fact, an interface is a group of method declarations that are not implemented. When a user-defined type wants to us ...

Posted by oracle259 on Sat, 07 May 2022 01:23:58 +0300

Understand Channel design in one article

In Go, to understand channel, you need to know goroutine first. 1, Why goroutine Modern operating systems provide us with three basic methods of constructing concurrent programs: multi process, I/O multiplexing and multithreading. Among them, the simplest construction method is multi process, but for multi process concurrent programs, due to ...

Posted by capslock118 on Fri, 06 May 2022 01:37:04 +0300