syncmap_generator

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSyncMapGenerator

func NewSyncMapGenerator(pkg *packagex.Package) generate.Generator

Types

type SyncMap

type SyncMap struct {
	PkgPath string
	Name    string
	Key     *generate.Type
	Value   *generate.Type
	// contains filtered or unexported fields
}

func NewSyncMap

func NewSyncMap(pkgPath, syncMapDef string) *SyncMap

func (*SyncMap) KeyType

func (syncMap *SyncMap) KeyType() jen.Code

func (*SyncMap) ValueType

func (syncMap *SyncMap) ValueType() jen.Code

func (*SyncMap) WriteToFile

func (syncMap *SyncMap) WriteToFile()

type SyncMapGenerator

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

func (*SyncMapGenerator) Scan

func (s *SyncMapGenerator) Scan(args ...string)

func (*SyncMapGenerator) WriteToFile

func (s *SyncMapGenerator) WriteToFile()

Jump to

Keyboard shortcuts

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