metagenerator

package
v0.0.0-...-98208a5 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GatherSyscalls

func GatherSyscalls() ([]Syscall, []Syscall, []Syscall, error)

func GenerateCStructs

func GenerateCStructs(cSyscalls []Syscall) (string, error)

func GenerateGoStructs

func GenerateGoStructs(goSyscalls []Syscall) (string, error)

func GenerateProtoStructs

func GenerateProtoStructs(protoSyscalls []Syscall, goSyscalls []Syscall) (string, error)

func ToCamel

func ToCamel(s string) string

Converts a string to CamelCase

Types

type Param

type Param struct {
	Position  int
	Name      string
	Type      string
	Suffix    string
	HashFunc  string
	NeedsPath bool `json:"needsPath"`
}

type Syscall

type Syscall struct {
	Name    string
	RawName string
	Params  []Param
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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