Categorygithub.com/web-go/tags
modulepackage
2.1.0+incompatible
Repository: https://github.com/web-go/tags.git
Documentation: pkg.go.dev

# README

Build Status Go Report Card

Tags

Easily build HTML tags in Go! This package is especially useful when using http://gobuffalo.io.

Getting Started

Prerequisites

Tags has a minimum Go dependency of 1.8.1.

Installing

To get this lib just get it via go get

go get -u -v github.com/gobuffalo/tags/...

Running the tests

In order to run the tests just do it with a regular

go test ./...

Documentation

Documentation is currently in this repository Wiki, you can find there instructions on how to use tags within your app.

Contributing

If you want to contribute, please read this article first: Contributing to Open Source Git Repositories in Go. It shows how to configure your git environment to avoid common pitfalls. This article is recommended to all those who are looking to contribute to any Go projects.

^ Taken from gobuffalo.io

⚠️ Send PRs to development branch

The way we release in Tags is:

  1. We use development branch to accumulate changes to be released
  2. Once we decide to make a release we send a PR from development to master with those changes to be added.
  3. Once that PR gets merged we tag a new release with the vX.X.X scheme.

# Packages

No description provided by the author

# Functions

JavascriptTag builds JS tags based in passed options.
New creates a new Tag with given name and options.
Pagination builds pagination Tag based on a passed pagintation interface.
StylesheetTag builds the <link> tag to load styles on the page.

# Constants

Version holds current source version number.

# Structs

Paginator describes a pagination meta data.
Tag describes a HTML tag meta data.

# Interfaces

AfterTag is content placed right after the Tag.
BeforeTag is content placed right before the Tag.
Body is a Tag inner content.

# Type aliases

Options is a map used to configure tags.