Skip to content

gouef/html

Repository files navigation

Html

Go code generate html

GoDoc GitHub stars Go Report Card codecov

Versions

Stable Version GitHub Release GitHub Release

Instalation

go get -u github.com/gouef/html

Usages

package main

import "github.com/gouef/html"

func getHtml() string {
	el := html.El("div")
	el.AddAttribute("class", "container-fluid")
	child := html.El("p").AddString("some text")
	el.AddHtml(child)
	
	return el.Render()
}

Commit rules

Commit message should looks like

[TYPE] some message

Types

  • Add
  • Fix
  • Update
  • Remove
  • Refactor
  • Docs
  • Test
  • Improve

Contributors

JanGalek actions-user