Go language Bible - Chapter 10 packages and tools - 10.1 - 10.7

Chapter 10 packages and tools Now any small program may contain 10000 functions, but we can't build them one by one. Most of them come from others. These functions are reused in a way similar to packages and modules There are more than 100 go language packages. You can use go list std wc -l to view them in the terminal. Open source packages c ...

Posted by ermarkar on Sun, 23 Jan 2022 06:47:22 +0100

Explain Java reflection mechanism in detail

Explain Java reflection mechanism in detail Experience the benefits of reflection through cases case US group take away - > payment - either paid with WeChat or paid by Alipay. //Interface maker: meituan takeout public interface Mtwm { //Online payment function: void payOnline(); } public class WeChat implements Mtwm{ @ ...

Posted by mrdonrule on Sun, 23 Jan 2022 06:45:01 +0100

Python exception handling

Basic concepts of Python exception handling prit('hehe') route File "c:\Users\wyw15\Desktop\python code\testpython_5\test.py", line 3, in <module> content prit('hehe') Name: undefined name“ prit" NameError: name 'prit' is not defined This looks like an exception, but it's actually an exception thrown by the program Throw exce ...

Posted by steven fullman on Sun, 23 Jan 2022 03:22:44 +0100

Write a Spring framework with 300 lines of code

Author: Tom bomb architecture Original link: Handwritten a Spring framework with 300 lines of code. Although the sparrow is small, it has five dirty parts - Nuggets This article is excerpted from Spring 5 core principles 1 custom configuration 1.1 configure application Properties file For the convenience of parsing, we use application ...

Posted by CrusaderSean on Sun, 23 Jan 2022 03:10:50 +0100

Spring Security custom authentication logic

Analyze problems The following is the flow chart of user name / password authentication built in Spring Security. We can start here: According to the above figure, we can follow suit and customize an authentication process, such as SMS code authentication. In the figure, I have marked the main links involved in the process with different co ...

Posted by unknown on Sat, 22 Jan 2022 20:22:10 +0100

[c language] recognize string character function + memory function | simulation implementation | strlen strcpy strcat strcmp strstr strtok memcpy memmove memset memcmp

Introduction to character function + memory function a key Find string length strlen String function with unlimited length strcpy,strcat,strcmp Introduction to string functions with limited length strncpy,strncat,strncmp String lookup strstr,strtok Error message report strerror Memory operation function memcpy,me ...

Posted by yorktown on Sat, 22 Jan 2022 19:49:06 +0100

Java object oriented, constructor, static and block

Java object orientation (2), constructors, static and blocks ​ First of all, let's understand what object-oriented is. Object-oriented is actually a kind of thinking to deal with problems, It's like going to pick up a cup of tea; ​ There are two kinds of thinking, one is object-oriented, the other is process oriented; Process oriented: wh ...

Posted by Tatara on Sat, 22 Jan 2022 18:43:24 +0100

Understanding internal classes in java

1. Internal class definition Inner class: define a class in another class or a method. Such a class is called inner class. An inner class is also an encapsulation (protection) The internal class is similar to the real-life car and engine, human and heart. be careful: Internal classes and external classes can easily access each other's pri ...

Posted by fireice87 on Sat, 22 Jan 2022 18:03:10 +0100

In depth analysis of source code: how do Eureka and Ribbon do service discovery?

This article is based on spring cloud dalston, and the article is long. Please choose a comfortable posture to read. What are Eureka and Ribbon? What does it have to do with service discovery? Eureka and Ribbon are microservice components provided by Netflix, which are used for service registration and discovery and load balancing respectiv ...

Posted by gpittingale on Sat, 22 Jan 2022 16:02:26 +0100

Syntax of template class for C + + basic learning

1. Concept of template Templates are general molds, which can greatly improve the reusability, such as templates in life and templates for one inch photos: PPT template: It can also be concluded from the above that the characteristics of the template are: The template can't be used directly. It's just a frameworkThe universality of template ...

Posted by rayden on Sat, 22 Jan 2022 15:18:39 +0100