source

package
v0.0.0-...-4df7676 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderStack

func RenderStack(stack string) string

RenderStack renders in HTML format with links to source code

Types

type File

type File struct {
	Path string
}

File represents the source code of our project

func GetFile

func GetFile(path string) (*File, error)

GetFile fetches the source code

func (*File) CopyTo

func (f *File) CopyTo(w io.Writer) error

CopyTo copies the content of the file to the given writer

func (*File) GetFileName

func (f *File) GetFileName() string

GetFileName returns the base file name of the file

func (*File) RenderTo

func (f *File) RenderTo(w io.Writer, lineNb int) error

RenderTo copies and highlight code to the given writer

Jump to

Keyboard shortcuts

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