twembed

package
v0.0.0-...-5d42b3b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2021 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

Package twembed contains an embedded copy of the TailwindCSS distribution. TODO explain how it's used and the idea is to only include this in a project if you're okay with adding the size to the resulting executable.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dist

type Dist struct{}

Dist implements tailwind.Dist

func New

func New() Dist

New returns an instance that implements tailwind.Dist using data embedded in this package.

func (Dist) OpenDist

func (d Dist) OpenDist(name string) (io.ReadCloser, error)

OpenDist implements the interface and returns embedded data.

func (Dist) PurgeKeyMap

func (d Dist) PurgeKeyMap() map[string]struct{}

PurgeKeyMap returns a map of all of the possible keys that can be purged.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL