Category:Golang

  • Definition and usage examples of go language interface

    Time:2020-6-6

    This paper introduces the definition and usage of go language interface. To share with you for your reference, as follows: In go, there is no difference between the meaning of interface and that of other languages. Interface understands it as a type of specification or convention. Does a type “implement” an interface? It depends on […]

  • 8. Go language process control: if else

    Time:2020-6-6

    Hi, Hello, this is Mingo. During my time of learning Golang, I wrote detailed study notes on my personal WeChat official account “Go programming time”. For Go language, I am also a beginner, so writing things should be more suitable for students who are just in contact. If you are just learning Go language, do […]

  • How to create web server with HTTP package in go language

    Time:2020-6-5

    The example of this article describes how to create web server by using HTTP package in go language. To share with you for your reference, as follows: There are two ways to write an HTTP web server in golang: Using net package net.Listen To monitor the port 2 use net / HTTP package Here is […]

  • Implementation of golang map (IV) map assignment and expansion

    Time:2020-6-5

    Title: implementation of golang map (4) date: 2020-04-28 18:20:30 tags: Golang map operation is a more complex logic in map implementation. Because when assigning values, in order to reduce the length of hash conflict chain, map expansion and data migration will be done. The expansion of map and data migration are also the focus of […]

  • Summary of necessary knowledge for learning go programming

    Time:2020-6-4

    If you want to learn go grammar, please memorize the following 4 points: 1. Environment variable: Using go env to view environment variables Goarch / gohostarch: architecture, AMD64 or 386 Goos / ghostos: operating system, Linux or windows Goroot: go installation directory Gobin: Go program directory Gotooldir: go tool catalog CGO_ Enabled: CGO enabled or […]

  • Golang package structure

    Time:2020-6-4

    Golang package management 1、 Gopath GOPATH:The workspace for development of golang, the go source code you write and the executable program generated after compilation will be stored in gopath. Note that gopath is just a common file directory and all your coding work should be done in this directory (the package dependency management tool, go […]

  • Simple implementation of image processing API of qiniu with golang

    Time:2020-6-3

    Before that, we have been using the storage service of qiniu to generate thumbnails, blurred images and webps of videos. Now we need to move the storage to S3, so these images and video processing need to be written by ourselves. This paper will sort out the general idea. Analyze requirements First, let’s see how […]

  • 9. Go language process control: switch case

    Time:2020-6-3

    Hi, Hello, this is Mingo. During my time of learning Golang, I wrote detailed study notes on my personal WeChat official account “Go programming time”. For Go language, I am also a beginner, so writing things should be more suitable for students who are just in contact. If you are just learning Go language, do […]

  • Custom set of go language

    Time:2020-6-2

    1、 Go language practice – custom set In the go languageHash TableImplemented dictionary(Map)Type, but no set in standard data type(Set)This data type. compareSet andMap Its main characteristics are as follows: The elements in them are not repeatable. All of them can only be extracted iteratively. The order in which the elements are iterated is independent […]

  • 10. Go language process control: for loop

    Time:2020-6-2

    Hi, Hello, this is Mingo. During my time of learning Golang, I wrote detailed study notes on my personal WeChat official account “Go programming time”. For Go language, I am also a beginner, so writing things should be more suitable for students who are just in contact. If you are just learning Go language, do […]

  • RSA of golang encryption and decryption (with PHP)

    Time:2020-5-31

    Brief history of RSA encryption algorithm RSA was proposed by Ron Rivest, ADI Shamir and Leonard Adleman in 1977. All three of them worked at MIT at that time. RSA is a combination of the first letters of their surnames. RSA encryption algorithm principle All the friends who have studied algorithm know that the algorithm […]

  • The principle and practice of Golang Context

    Time:2020-5-31

    In this article, let’s learn about the use of golang context and the implementation of context in the standard library. At the beginning, the golang context package was just a golang package used internally by Google, which was officially introduced into the standard library in the version of golang 1.7. Let’s start. Brief introduction Before […]