[go learning notes] 9. Strings in go language
Character string
string is a data type, not a reference or pointer type
string is a read-only byte slice. The len function can get all the bytes
The byte array of string can hold any data
func TestString(t *testing.T) {
var s string
t.Log(s) //Initialize to default zero value ''
s = "hello"
t.Log(len(s))
//s[1] = '3' //str ...
Posted by syd on Fri, 20 Mar 2020 15:47:14 +0100
Introduction to the open source project Humanizer
Humanizer meets all your.Net needs for operations and displays of the following types, including strings, enumerations, dates, times, time spans, numbers, and quantities.It uses MIT for authorized distribution.
1. Humanized string
Humanized string extensions allow you to convert strings that were originally processed by your computer into hum ...
Posted by mastermike707 on Thu, 19 Mar 2020 04:44:26 +0100
Using Spring OpenFeign to transfer files
Custom Catalog title is written here
Module B uploads the file and calls the file saving implementation of module A
1.1 business scenario
2.1 troubleshooting process
3.1 solutions
4.1 knowledge expansion
4.1.1 @PostMapping parameter meaning
4.1.2 interface parameter description
Complete code
1 in ...
Posted by vijay17877 on Tue, 17 Mar 2020 08:02:09 +0100
Java Learning Notes 3-Process Control
Article Directory
Input & Output
input
output
if judgment
switch multiple selection
While & do while loop
for loop
break and continue
summary
Input & Output
input
Getting input from the console requires importing the java.util.Scanner class in Java to get different types of input ...
Posted by spikypunker on Tue, 17 Mar 2020 03:23:02 +0100
Super ledger fabric Transient Data and Private Data use cases
There are two related concepts in Hyperledger Fabric: Private Data and Transient Data. This paper provides four example programs, which correspond to the four combinations of Private Data and Transient Data. By observing the transactions of account books and the world state database, we can understand why Transient Data should be used as input ...
Posted by netxfly on Mon, 16 Mar 2020 16:01:14 +0100
Git notes (26) interactive temporary storage
Git notes (26) interactive temporary storage
1. Interactive temporary storage
2. Temporary and cancel temporary files
3. Temporary patch
1. Interactive temporary storage
Without IDE
Git comes with scripts that make it easier to work on the command line
There are several interactive commands tha ...
Posted by mattw on Sat, 14 Mar 2020 14:39:06 +0100
Using Spring Cloud Alibaba Nacos to realize service registration and discovery
What is Nacos
Nacos is one of the important components in Spring Cloud Alibaba ecosystem, which is used to discover, configure and manage microservices. Nacos provides a set of simple and easy-to-use feature sets, which can quickly realize dynamic service discovery, service configuration, service meta ...
Posted by almora on Tue, 10 Mar 2020 06:28:13 +0100
Taodong e-commerce project (25) - portal registration function
Introduction
The code of this article has been submitted to Github (version No.: 0bc0c9f7be8c3a9c64b2e9efec94f55ed8b1a334). Students who are interested can download it to have a look: https://github.com/ylw-github/taodong-shop
In the last section Taodong e-commerce project (24) - access to verifica ...
Posted by Daguse on Mon, 09 Mar 2020 10:10:22 +0100
ElasticSearch word breaker, take a look
This article mainly introduces what is Analysis, what is the word breaker, and how the word breaker of ElasticSearch works. Finally, it will introduce how to do the Chinese word breaker.
First of all, what is Analysis
What is Analysis?
As the name implies, text Analysis is the process of converting the full text into a series of words (term/tok ...
Posted by Danno13 on Sun, 08 Mar 2020 13:58:31 +0100
CentOS7 installs FastDFS and deploys LNMP to build FastDFS PHP API interface (FastDFS installation)
Note: I've built this several times recently. Take notes this time so that I don't forget. It won't be so troublesome next time
1, FastDFS introduction
FastDFS open source address: https://github.com/happyfish100
Set up FastDFS cluster: https://blog.csdn.net/u012453843/article/details/68957209
Re ...
Posted by nfr on Fri, 06 Mar 2020 08:30:59 +0100