parrot

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package parrot provide storage to go memory or static go file mapping code generation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(ctx context.Context, src, dest string, useASCII bool, opts ...storage.Option) (err error)

Generate generate code that maps source file into destination go files

func GenerateWithMem

func GenerateWithMem(ctx context.Context, src, dest string, useASCII bool, opts ...storage.Option) (err error)

GenerateWithMem generate code that pre loads src location assets into memory storage

func Pkg

func Pkg(location string) string

Pkg returns package name for location

Types

type Data

type Data []byte

Data represents parrot data

func (Data) AsBytesLiteral

func (d Data) AsBytesLiteral(ASCII bool) string

AsBytesLiteral returns literal bytes representation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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