qexport

command
v2.7.20+incompatible Latest Latest
Warning

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

Go to latest
Published: May 26, 2016 License: MIT Imports: 18 Imported by: 0

README

The Q Language Export Tool

Export go package to qlang module

The Q Language : https://github.com/qiniu/qlang

Usages:

qexport [-contexts=""] [-defctx=false] [-outpath="./qlang"] packages
	 
The packages for go package list or std for golang all standard packages.

  -contexts string
    	optional comma-separated list of <goos>-<goarch>[-cgo] to override default contexts.
  -defctx
    	optional use default context for build, default use all contexts.
  -outpath string
    	optional set export root path (default "./qlang")

Examples:

export sync
> qexport sync

export html and html/template package
> qexport html html/template

export all package
> qexport std

Export pacakge runtime:

package runtime

import (
	"runtime"
)

// Exports is the export table of this module.
//
var Exports = map[string]interface{}{
	"_name": "runtime",

	"compiler": runtime.Compiler,
	"GOARCH":   runtime.GOARCH,
	"GOOS":     runtime.GOOS,

	"memProfileRate": runtime.MemProfileRate,

	"blockProfile":        runtime.BlockProfile,
	"breakpoint":          runtime.Breakpoint,
	"CPUProfile":          runtime.CPUProfile,
	"caller":              runtime.Caller,
	"callers":             runtime.Callers,
	"GC":                  runtime.GC,
	"GOMAXPROCS":          runtime.GOMAXPROCS,
	"GOROOT":              runtime.GOROOT,
	"goexit":              runtime.Goexit,
	"goroutineProfile":    runtime.GoroutineProfile,
	"gosched":             runtime.Gosched,
	"lockOSThread":        runtime.LockOSThread,
	"memProfile":          runtime.MemProfile,
	"numCPU":              runtime.NumCPU,
	"numCgoCall":          runtime.NumCgoCall,
	"numGoroutine":        runtime.NumGoroutine,
	"readMemStats":        runtime.ReadMemStats,
	"readTrace":           runtime.ReadTrace,
	"setBlockProfileRate": runtime.SetBlockProfileRate,
	"setCPUProfileRate":   runtime.SetCPUProfileRate,
	"setFinalizer":        runtime.SetFinalizer,
	"stack":               runtime.Stack,
	"startTrace":          runtime.StartTrace,
	"stopTrace":           runtime.StopTrace,
	"threadCreateProfile": runtime.ThreadCreateProfile,
	"unlockOSThread":      runtime.UnlockOSThread,
	"version":             runtime.Version,

	"blockProfileRecords": newBlockProfileRecords,
	"funcForPC":           runtime.FuncForPC,
	"memProfileRecords":   newMemProfileRecords,
	"memStats":            newMemStats,
	"stackRecords":        newStackRecords,
}

func newBlockProfileRecords(n int) []runtime.BlockProfileRecord {
	return make([]runtime.BlockProfileRecord, n)
}

func newMemProfileRecords(n int) []runtime.MemProfileRecord {
	return make([]runtime.MemProfileRecord, n)
}

func newMemStats() *runtime.MemStats {
	return new(runtime.MemStats)
}

func newStackRecords(n int) []runtime.StackRecord {
	return make([]runtime.StackRecord, n)
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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