golang

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extractor

type Extractor struct {
}

Extractor similar to cue go, but just only generate for one import path

Targets:

* gen const values * gen types

  • k8s resources with meta_v1.TypeMeta should gen with { apiVersion, kind }

Rules:

* skip & drop imports from go std libs exclude cue builtins support.

func (Extractor) Detect

func (Extractor) Detect(ctx context.Context, src string) (bool, map[string]string)

func (*Extractor) Extract

func (e *Extractor) Extract(ctx context.Context, src string) ([]*cueast.File, error)

func (Extractor) Name

func (Extractor) Name() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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