go export html report (using hero precompiled html template engine)

preface According to the project requirements, the data of the server needs to be exported for easy portability and display. An html report is exported and how to implement it is considered. Use front-end frameworks such as vue to export the data into json files one by one, and then dynamically render the html view by reading jsDirectly write ...

Posted by nepton on Wed, 27 Oct 2021 12:11:03 +0200

Use 3.7W to talk with you about Java network programming

Yesterday, I went home by car and punched in a force buckle on the car. After I finished, I was bored. I saw that I had collected Akka before. I vaguely remember that it was an execution unit smaller than a thread (that's what I understood at that time). In addition, I learned from Golang before and saw the way that Goroutine can handle request ...

Posted by tim_ver on Wed, 27 Oct 2021 10:19:44 +0200

Learn Go: 17. Explain 20 placeholders in detail

>>Original address Learn what What is a placeholder? Which functions are supported? How do I use placeholders? The role of different placeholders? How many marker symbols are used with placeholders? concept What is a placeholder? You can understand from the surface meaning that it is to occupy a position, but there are many different ...

Posted by ccgorman on Tue, 26 Oct 2021 08:00:26 +0200

golang learning notes basic summary!

golang study notes Opening: first study, understanding is still shallow. For the time being, take some notes and enrich them slowly in the future, and then correct or add them~ Chapter I: Enlightenment and environmental installation Installation link (non official website): https://studygolang.com/dl Terminal input: go env to view the imag ...

Posted by avo on Mon, 25 Oct 2021 11:46:57 +0200

Talk about Goroutine scheduling strategy~

Original address: Talk about Goroutine scheduling strategy~ In< Talk about Goroutine thread model and scheduler (I) >As mentioned in the article, goroutine scheduling is essentially a process in which the program code selects the appropriate goroutine at a certain time according to a certain algorithm and runs it on the CPU. This sentenc ...

Posted by Pavel_Nedved on Mon, 25 Oct 2021 04:09:50 +0200

On the advanced use of protobuf in go language

If you just want to play go web stand-alone development, you can refer to it gin project framework 1, Transferring data between microservices 1. In microservices, data can be exchanged not only through input parameters and return parameters, but also through metadata 2. Define a simple proto file syntax = "proto3"; option go_package = ". ...

Posted by Guffi on Sun, 24 Oct 2021 12:45:57 +0200

Go determines whether the element is in the slice

1. Problems How to judge whether an element is in the slice? Golang does not provide a direct library function to judge. The easiest implementation to think of is to judge by traversal. 2. Traversal query Take the string slice as an example to judge whether a string is included in the string slice. // ContainsInSlice determines whether ...

Posted by khanuja.sunpreet on Mon, 18 Oct 2021 20:14:25 +0200

Deep decryption of Go language unsafe

Pointer type Before formally introducing the unsafe package, we need to focus on the pointer types in the Go language. When I started learning programming as an undergraduate, my first language was c. After that, I learned C + +, Java and Python. These languages are very powerful, but they are not as "simple" as C language. Unti ...

Posted by fredroines on Fri, 15 Oct 2021 22:23:39 +0200

Learn Go: 14. Pointer type

>>Original address Learn what What is a pointer? What is a pointer type? How to use and create pointer type variables? How to get values from pointer variables? How do I pass pointers? What is a pointer What is a memory address first? The point of popularity is that the number of data storage locations on computer is just like our ID ...

Posted by kidd1270 on Thu, 14 Oct 2021 05:13:40 +0200

Go Language Bible - Introduction to Chapter 1 - 1.3&1.4 Find Duplicate Lines & GIF

Chapter 1 Introduction 1.3 Find duplicate rows In Section 1.2, we have a brief overview of the basic grammar of the Go language. Next, let's take a look at an example to learn more. Programs that copy, print, search, sort, count, or similar files all have a similar program structure: a loop that handles inputs, performs computational process ...

Posted by Iasonic on Wed, 13 Oct 2021 19:00:29 +0200