1
0
mirror of https://github.com/essentialkaos/go-badge.git synced 2025-04-18 01:17:38 +03:00
ᴀɴᴛᴏɴ ɴᴏᴠᴏᴊɪʟᴏᴠ 5e693705df
Merge pull request #43 from essentialkaos/develop
Version 1.4.1
2024-07-06 20:10:19 +03:00
2024-07-03 16:14:40 +03:00
2021-08-12 02:23:12 +03:00
2021-08-24 20:18:03 +03:00
2023-04-18 01:55:58 +03:00
2024-07-06 14:00:04 +03:00
2024-07-06 13:58:35 +03:00
2021-08-12 02:23:12 +03:00
2024-07-03 16:14:40 +03:00
2021-08-12 02:23:12 +03:00

GitHub Actions CI Status GoReportCard Coverage Status
Codebeat badge Codacy badge GitHub Actions CodeQL Status

Usage exampleExamplesCI StatusContributingThanksLicense


badge is a Go package for generating SVG badges.

Usage example

package main

// ////////////////////////////////////////////////////////////////////////// //

import (
  "fmt"
  "github.com/essentialkaos/go-badge"
)

// ////////////////////////////////////////////////////////////////////////// //

func main() {
  g, err := badge.NewGenerator("Verdana.ttf", 11)

  if err != nil {
    panic(err)
  }

  fmt.Println(string(g.GeneratePlastic("status", "ok", "#97ca00")))
}

Examples

Flat Flat Square Plastic Flat (Simple) Flat Square (Simple) Plastic (Simple)
flat square plastic flat-simple square-simple plastic-simple
flat square plastic flat-simple square-simple plastic-simple
flat square plastic flat-simple square-simple plastic-simple
flat square plastic flat-simple square-simple plastic-simple
flat square plastic flat-simple square-simple plastic-simple
flat square plastic flat-simple square-simple plastic-simple
flat square plastic flat-simple square-simple plastic-simple
flat square plastic flat-simple square-simple plastic-simple
flat square plastic flat-simple square-simple plastic-simple
flat square plastic flat-simple square-simple plastic-simple
flat square plastic flat-simple square-simple plastic-simple
flat square plastic flat-simple square-simple plastic-simple
flat square plastic flat-simple square-simple plastic-simple
flat square plastic flat-simple square-simple plastic-simple
flat square plastic flat-simple square-simple plastic-simple

All badges are generated with the latest version of the package.

CI Status

Branch Status
master CI
develop CI

Contributing

Before contributing to this project please read our Contributing Guidelines.

Thanks

We would like to thank:

License

Apache License, Version 2.0

Description
Пакет Go для создания значков SVG
Readme Apache-2.0 248 KiB
Languages
Go 85.6%
Makefile 14.4%