您的位置 首页 golang

Gox语言目前支持的Go语言标准库与第三方库-GX4.2

Gox语言目前内置支持大多数Go语言(Golang)的官方标准库,也支持一些常用的第三方库。这些内置的库使用时无需导入,直接按一定的名称规则使用即可:类似 strings这样一级名称的ku直接使用即可,例如 strings.Contains(a, "b");对于多级的包名,规定“/”字符用下划线“_”代替,其他字符一律去除,例如 net/http直接用net_http引用即可。另外github.com这样的名称将去掉后面的“.com”后缀,例如github.com/topxeq/sqltk用github_topxeq_sqltk引用即可,gonum.org/v1/plot用gonum_v1_plot引用。而像github.com/topxeq/tk这样特别常用的库,还可以直接用tk这样的简称来引用。

这些库主要包括有:

Go语言标准库

archive/zip

bufio

bytes

crypto

crypto/aes

crypto/cipher

crypto/hmac

crypto/md5

crypto/rand

crypto/rsa

crypto/sha1

crypto/sha256

crypto/x509

database/sql

encoding/base64

encoding/csv

encoding/gob

encoding/hex

encoding/json

encoding/pem

encoding/xml

errors

flag

fmt

hash/fnv

html

html/template

image

image/color

image/color/palette

image/draw

image/gif

image/jpeg

image/png

io

io.ioutil

log

math

math/big

math/bits

math/rand

net/http

net/http/cookiejar

net/http/httputil

net/mail

net/rpc

net/smtp

net/url

os

os/exec

os/signal

os/user

path

path/filepath

reflect

regexp

runtime

runtime/debug

sort

strconv

strings

sync

text/template

time

unicode

unicode/utf8

第三方库

gonum.org/v1/plot —— 一个优秀的绘制图表的库

github.com/domodwyer/mailyak —— 发送SMTP邮件的便捷库

github.com/360EntSecGroup-Skylar/excelize —— 处理Excel文件的库

github.com/fogleman/gg —— 一个优秀的绘图库

github.com/dgraph-io/badger —— 一个NoSQL数据库

github.com/topxeq/govcl/vcl —— 从ying32的Govcl继承而来,基于LCL的GUI图形界面库

github.com/AllenDang/giu —— 基于Open GL的GUI界面库

github.com/topxeq/sqltk —— 用于进行SQL/关系型数据库操作的便捷库,支持Oracle、MySQL、MS SQL Server、SQLite等数据库

github.com/topxeq/imagetk 图形处理的便捷库

github.com/beevik/etree —— 一个优秀的处理XML的库


文章来源:智云一二三科技

文章标题:Gox语言目前支持的Go语言标准库与第三方库-GX4.2

文章地址:https://www.zhihuclub.com/1851.shtml

关于作者: 智云科技

热门文章

网站地图