Ejemplo n.º 1
0
func (e *Editor) loadDefaultPackets() {
	paths := []string{
		LIME_DEFAULTS_PATH,
		LIME_USER_PACKETS_PATH,
	}
	for _, path := range paths {
		for _, p := range packages.ScanPackets(path) {
			packets = append(packets, p)
		}
	}
}
Ejemplo n.º 2
0
func init() {
	runtime.GOMAXPROCS(runtime.NumCPU())
	GetEditor()

	// Load the default Packets
	paths := []string{
		LIME_DEFAULTS_PATH,
		LIME_USER_PACKETS_PATH,
	}
	for _, path := range paths {
		for _, p := range packages.ScanPackets(path) {
			packets = append(packets, p)
		}
	}
}