Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement gopackages subcommand #108

Open
DQNEO opened this issue Jul 27, 2023 · 0 comments
Open

Implement gopackages subcommand #108

DQNEO opened this issue Jul 27, 2023 · 0 comments

Comments

@DQNEO
Copy link
Owner

DQNEO commented Jul 27, 2023

$ gopackages -mode types ./lib/mylib
Go package "github.com/DQNEO/babygo/lib/mylib":
	package mylib
	has complete exported type info
	file /Users/DQNEO/src/github.com/DQNEO/babygo/lib/mylib/mylib.go
	import "github.com/DQNEO/babygo/lib/mylib2"
	import "os"
	func InArray(x string, list []string) bool
	const Msg string
	func Readdirnames(dir string) ([]string, error)
	func SortStrings(ss []string)
	func Sum(a int, b int) int
	func Sum2(a int, b int) int
	type Type struct{Field int}
	method (*Type) Method() int

TODO

  • Implement babygo gopackages <pkg>
  • Ensure all packages output the same result
  • Add test in Makefile to check the results. (compare babygo 2gen with the official gopackages)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant