In Go 1.17 Release Notes, along with encoding / xml and encoding/binary, encoding / CSV has also been slightly modified.
The new Reader.FieldPos method returns the line and column corresponding to the start of a given field in the record most recently returned by Read. The
FieldPost method has been added to csv.Reader to return the last read column.
I will introduce this. I chose it because I personally like data layouts like CSV, JSON, and Apache Parquet.
Issue is encoding / csv: add the ability to get the line number of record # 44221. Since it was drafted on…
Added a new testing flag -shuffle which controls the execution order of tests and benchmarks.
The new T.Setenv and B.Setenv methods support setting an environment variable for the duration of the test or benchmark.
Added a new test flag -shuffle to control the order of test and benchmark execution.
The new T.Setenv and B.Setenv methods support setting environment variables during testing or benchmarking.
It’s a nice feature that can solve unexpectedly deep-rooted problems, but this time I will introduce this new feature.
You can add some flags…
go getOutputs a warning when installing a command from outside the module
-insecureflag is no longer used, the environment variable
GOINSECUREis used instead
go get —Outputs a warning when installing a command from outside the module
go getWarning of time
Release Notes Go1.16 even, in the installation of the command
go get says it’s deprecated but still, you can use it although there was a notice to inform that, in Go1.17, the binary command from outside the module
go getinstalled using the source (Download the source
$GOPATH/binand deploy the binary built from the source). If you have so that the warning comes out. …
atomic.Valuefollowing methods have been added to the package .
Even before Go 1.16, Compare And Swap (hereinafter referred to as CAS) and Swap functions were provided as int and uint 32, 64 type and Pointer type functions. With this change
atomic.Value, CAS is now available.
CAS is literally an instruction that atomically compares and replaces.
The processing is the following 1–3.
If False is returned from CAS, it is determined that the…
When an ARM Mac comes out, it has been a long time since it was announced at WWDC, and at the same time as the announcement, I bought a MacBook Pro and installed various applications to see if the application is ARM natively supported and tried it. .. It’s been less than two weeks since it was released (although it seems that everyone used the development kit to prepare it for some time), but there are many applications that are working. Even after the release, there was a patch in the master branch around Erlang and Node.js. …
I heard the footsteps of the Go 1.17 release. There is no big new function like go: embed of 1.16 that makes a “wow” voice, and it seems that there are many small APIs added, such as APIs that are improved without change. It was said that generics is 1.17 at the shortest if there is no change, but this time it is not included.
A register-based function call that was foretold at 1.16 has been entered. Call speed improved by 5% and binary size improved by 2%. You will benefit from it without any code changes.
After that, the…
I had the opportunity to launch a new microservice and based on a clean architecture. Clean architecture is used in many places such as backends, frontends, and apps. However, there is no definite method, and I think everyone is doing trial and error. In this article, I would like to share with you some thoughts on adopting a clean architecture.
I hope it helps people who have never made microservices, or who have made some but are thinking about better design.
The main thoughts are as follows.
After searching around for a few hours, I cannot seem to find what I’m looking for and the documentation on this subject is non-existent.
I needed access to the package in a lambda function however I have been unsuccessful finding the
NumPy packages for usage in a Lambda function.
So i decided to build the libraries myself to support the Amazon Linux 2 arch.
How use Pandas and NumPy with Lambda functions (Python 3.7 or Python 3.8)?
There are no default
NumPy packages in AWS Lambda. …
When asked about Go’s recommended framework, I
net/httptry to say it 's the standard library . Rather, it's
net/httpjust a wrapper for what's called other Go frameworks .
The image when creating an application with Go is as follows. The battery included approach is sometimes found in other languages, but many of the features that come with it are modern, and the standard library is often sufficient. It’s the same with web development.
As with Python and Ruby, the language-embedded web server function is for testing, and the function is insufficient for production operation, and the performance is insufficient, so…
One of the great features of the Go language is its Interface.
Compared to other languages such as Java and C # that have an Interface, the main difference in the language function of Go’s Interface is that it is an interface that can declare a list of methods that are statically checked like a static language, but duck typing and duck typing Type assertion allows for flexible usage like a dynamic language.
However, this alone sounds like a simple choice that can be used according to the case. In fact, Go language packages, type systems, and cultural features allow…