asp.net core

Suppose a scenario, we need an application that separates the front end from the back end, and the server API uses ASP Net core development, there are two sets of front-end, one is the client for all users, the other is the management background for administrators, using ASP Net core hosting as the back-end + front-end web server. It should be ...

Posted by shailendra on Wed, 30 Mar 2022 00:29:54 +0300

Go concurrent learning -- goroutine and channel

Threads and coroutines Thread: the smallest unit that the operating system can schedule operations. A process can contain multiple threads, which is the actual operation unit in the process. **Coroutine: * * also known as micro thread. A coroutine is a lightweight thread in user mode. A coroutine has its own register context and stack. During ...

Posted by BrentNorin on Tue, 29 Mar 2022 11:01:05 +0300

Common code optimization points in Golang

Common code optimization points in Golang Hello, I'm xuanmai blade. This article wants to talk to you about the common code writing methods of golang. In golang, if you keep writing code on the front line, you will have some code routines and experience. These experiences represent your thinking and solving of some problems or a kind of problem ...

Posted by nnichols on Tue, 29 Mar 2022 05:03:00 +0300

Interesting open source monthly "Hello GitHub" No. 72

Interest is the best teacher. HelloGitHub makes you interested in programming! brief introduction Hello GitHub shares interesting, entry-level open source projects on GitHub. https://github.com/521xueweihan/HelloGitHub There are practical projects, introductory tutorials, black technology, open source books, large factory open sour ...

Posted by moallam on Mon, 28 Mar 2022 06:47:08 +0300

golang stack, heap allocation analysis and CPU and memory performance

1, Escape analysis Heap: Generally speaking, it is managed manually, including manual application, allocation and release. Generally, the memory size involved is uncertain, and large objects are generally stored. In addition, its allocation is relatively slow and involves relatively many command actions Stack: it is managed by the compiler and ...

Posted by shazam on Sun, 27 Mar 2022 22:14:48 +0300

What does Go ORM do?

Fat sir: Next, give you a pie Captain: Come on!! A tidy note from ORM... 1 What is ORM? Why ORM? What is an ORM, or Object-Relationl Mapping, is a mapping between relational databases and objects. In this way, when we operate the database in a specific way, we no longer need to deal with complex SQL statements, as long as we operate the obj ...

Posted by Serpent_Guard on Sun, 27 Mar 2022 20:01:16 +0300

Go ~ concurrent programming runtime, workerPool, timer, ticker, sync, atomic

preface Some concepts of concurrency Processes and threads A. Process is an execution process of a program in the operating system. The system is an independent unit for resource allocation and scheduling. B. Thread is an executive entity of a process. It is the basic unit of CPU scheduling and dispatching. It is a smaller basic unit t ...

Posted by vaibhavs on Sun, 27 Mar 2022 17:48:38 +0300

Introduction to Go - detailed explanation of defer

Introduction to Go (5) -- detailed explanation of defer The keyword defer allows you to postpone the execution of a statement or function until before the function returns (or after the return statement is executed anywhere). The return statement can also contain some operations, so there may be a need to postpone the statement after return. Th ...

Posted by yonta on Sun, 27 Mar 2022 02:32:00 +0300

Functions of GO language

catalogue 1. Basic function Example 1 Example 2 Example 3 2. Function parameters pass by value Reference passing Variable parameters of function 3. Function as argument 4. Callback function 5. Functional closure 6. Function method Example -- calculate the circle area A function is a basic block of code used to perform a task. ...

Posted by ridiculous on Sat, 26 Mar 2022 08:05:05 +0300