Golang practice record: use the gin framework to realize the forwarding function: upload files and transfer them

Recently, we need to implement a gadget to forward post requests to the specified back-end service. Because we always want to learn the gin framework, we use this framework to try. It is expected to produce several articles. This paper first studies how to realize the upload and forward function in gin framework. Question raised A backgroun ...

Posted on Mon, 20 Sep 2021 13:52:24 -0400 by lucie

Descriptive statistical analysis and mapping

1 descriptive statistical analysis 1.1 concept Data variable measurement type Nominal: character (original meaning), numerical value (code) Grade: characters and values are sorted, and the difference of "small, medium and large" is meaningless Continuous: value 'age' #Continuous variables are grouped and used as hierarchical va ...

Posted on Mon, 20 Sep 2021 15:17:38 -0400 by ankurcse

Basic problem solving of Linear Programming Series

Catalogue of series articles Fundamentals: 1. matlab linear programming problem -------- based on the problem solving function optimproblem Article catalog Catalogue of series articlespreface1, What is linear programming?2, Hands on practical problems 2.1 classification issues2.2 find the corresponding three points2.3 code examples ...

Posted on Mon, 20 Sep 2021 14:29:35 -0400 by lovasco

There are many ways to pass parameters in mybatis

1. The first method is to pass parameters in sequence by anonymous parameters controller @ApiOperation(value = "Multiple parameter query_Anonymous sequential parameter transfer") @GetMapping("findByParams") public ResultMsg findByParams(Short gender,String age) { List result= employeeMapper.selectByGenderAndAge(gender,age); return Res ...

Posted on Mon, 20 Sep 2021 14:51:48 -0400 by asy1mpo

Introduction to the Spring Framework Learning IOC

IOC(Inversion of Control, Control Reverse) IOC also has an individual name, Dependency Injection Role: Dependent classes in a class do not need to go to new themselves, and are created and managed by the IOC container. I. Before IOC The FXNewsProvider class needs to instantiate two dependent classes (IFXNewsListener, IFXNewsPersister) before ...

Posted on Mon, 20 Sep 2021 13:43:20 -0400 by widget

Algorithm design and analysis 001

1.n! Recursive algorithm implementation of Topic analysis Recursion: the program calls itself n!=n(n-1)(n-2)(n-3)*1 Code implementation: C++ #include<iostream> using namespace std; int Factorial(int n) { if(n==1)return 1; else return n*Factorial(n-1); } int main() { int n; cin>>n; cout<<Factorial(n)<<endl; retu ...

Posted on Mon, 20 Sep 2021 15:32:32 -0400 by Gurzi