# Go-Validation-Code
**Repository Path**: kwff/Go-Validation-Code
## Basic Information
- **Project Name**: Go-Validation-Code
- **Description**: Golang validation code demo.Go语言验证码示例。
- **Primary Language**: Go
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2026-03-08
- **Last Updated**: 2026-03-08
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
Go语言验证码示例
==================
这是一个验证码的示例,用到了freetype-go库。本身是想实现自动计算图片高度高度的,目前看在宽度的计算上还有些问题。必竟对于字体怎么输出显示的内部原理不熟。有对这一块熟的,可以修改一下。
mfreetype.go是我自己加的一个文件,里面有个函数MeasureString,用来计算字符串所点宽度的(高度不知道怎么算)。
freetype\luxi-fonts目录下存放的是字体,可以从网上下些字体库来用。
页面地址:http://localhost:8080/
验证码地址:http://localhost:8080/pic
交流QQ群:184572648