gocopy

package
v0.0.0-...-9c339ae Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFunction

func CopyFunction(fetcher sourceFetcher, fnName string) (string, error)

func CopyType

func CopyType(fetcher sourceFetcher, typeName string, includeMethods bool) (string, error)

Types

type ErrFunctionNotFound

type ErrFunctionNotFound struct {
	// contains filtered or unexported fields
}

func (ErrFunctionNotFound) Error

func (e ErrFunctionNotFound) Error() string

type ErrInvalidGoSource

type ErrInvalidGoSource struct {
	// contains filtered or unexported fields
}

func (ErrInvalidGoSource) Error

func (e ErrInvalidGoSource) Error() string

type ErrTypeNotFound

type ErrTypeNotFound struct {
	// contains filtered or unexported fields
}

func (ErrTypeNotFound) Error

func (e ErrTypeNotFound) Error() string

type HTTPFetcher

type HTTPFetcher struct {
	URL string
}

func (HTTPFetcher) Fetch

func (H HTTPFetcher) Fetch() ([]byte, error)

Jump to

Keyboard shortcuts

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