Go操作MySQL数据库 来源 http://moguit.cn/#/info?blogUid=3d1cc9ce434aeaf2187692eb0feea294 https://www.liwenzhou.com/posts/Go/go_mysql/ 前言 常见的数据库有 SqlLite MySQL SQLServer postgreSQL
阅读全文
Flag包的用法
Flag包的用法 Go语言内置的flag包实现了命令行参数的解析,flag包使得开发命令行工具更为简单。 os.Args 如果你只是简单的想要获取命令行参数,可以像下面的代码示例一样使用os.Args来获取命令行参数。
阅读全文
Pretty
Pretty Pretty is a Go package that provides fast methods for formatting JSON for human readability, or to compact JSON for smaller payloads. Getting Started Installing To start using Pretty, install G
阅读全文
match
Match Match is a very simple pattern matcher where '*' matches on any number characters and '?' matches on any one character. Installing go get -u github.com/tidwall/match Example match.Match("hello",
阅读全文
GJSON Path Syntax
GJSON Path Syntax A GJSON Path is a text string syntax that describes a search pattern for quickly retreiving values from a JSON payload. This document is designed to explain the structure of a GJSON
阅读全文
Installing
get json values quickly GJSON is a Go package that provides a fast and simple way to get values from a json document. It has features such as one line retrieval, dot notation paths, iteration, and par
阅读全文
decimal
decimal Arbitrary-precision fixed-point decimal numbers in go. Note: Decimal library can "only" represent numbers with a maximum of 2^31 digits after the decimal point. Features The zero-value is 0, a
阅读全文
Decimal v1.2.0
Decimal v1.2.0 BREAKING Drop support for Go version older than 1.7 #172 FEATURES Add NewFromInt and NewFromInt32 initializers #72 Add support for Go modules #157 Add BigInt, BigFloat helper methods #1
阅读全文
Go的函数
Go的函数 函数定义 函数是组织好的、可重复使用的、用于执行指定任务的代码块 Go语言支持:函数、匿名函数和闭包 Go语言中定义函数使用func关键字,具体格式如下:
阅读全文
Golang map详解
Golang map详解 map的介绍 map是一种无序的基于key-value的数据结构,Go语言中的map是引用类型,必须初始化才能使用。 Go语言中map的定义语法如下: map[KeyType]ValueType
阅读全文