Skip to content

Commit

Permalink
docs: 更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
caixw committed Nov 21, 2023
1 parent 788f70e commit be3ddcc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version
[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fissue9%2Fversion%2Fbadge%3Fref%3Dmaster&style=flat)](https://actions-badge.atrox.dev/issue9/version/goto?ref=master)
[![Test](https://github.com/issue9/version/actions/workflows/go.yml/badge.svg)](https://github.com/issue9/version/actions/workflows/go.yml)
[![codecov](https://codecov.io/gh/issue9/version/branch/master/graph/badge.svg)](https://codecov.io/gh/issue9/version)
[![license](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](https://opensource.org/licenses/MIT)
![License](https://img.shields.io/github/license/issue9/version)
[![Go version](https://img.shields.io/github/go-mod/go-version/issue9/version)](https://golang.org)
[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/github.com/issue9/version)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/issue9/version)](https://pkg.go.dev/github.com/issue9/version)
======

通过定义 struct tag 的相关属性,可以解析大部份版本号字符串到一个结构体中。
Expand Down
4 changes: 2 additions & 2 deletions semver.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"github.com/issue9/errwrap"
)

// SemVersion 是 semver 的定义
// SemVersion 是 [semver] 的定义
//
// 具体可参考:https://semver.org/lang/zh-CN/
// [semver]: https://semver.org/lang/zh-CN/
type SemVersion struct {
Major int `version:"0,.1"`
Minor int `version:"1,.2"`
Expand Down

0 comments on commit be3ddcc

Please sign in to comment.