expand

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Analyze C++ code and create JSON for wandbox API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expand

func Expand(files []string, src string, re string) (string, map[string]string)

func ExpandAll

func ExpandAll(files []string, re string) map[string]string

ExpandAll : Expand all files(for muliple file compilation)

func ExpandGo

func ExpandGo(t string) (string, map[string]string)

func ExpandInclude

func ExpandInclude(file string, re string) (string, map[string]string)

ExpandInclude : Expand only included files(for one file compilation)

func ExpandIncludeMulti

func ExpandIncludeMulti(files PathSlice, re string) (string, []string, map[string]string)

ExpandIncludeMulti : Expand all files(for muliple file compilation)

func ExpandMulti

func ExpandMulti(files []string, src string, sub []string, re string) (string, map[string]string)

func ExpandRuby

func ExpandRuby(files []string, src string, re string) (string, map[string]string)

func ExpandRubyRequire

func ExpandRubyRequire(file string, re string) (string, map[string]string)

func GOPATH

func GOPATH() (*regexp.Regexp, *regexp.Regexp)

func ReadDirEx

func ReadDirEx(match string) ([]os.FileInfo, error)

func ReadFileEx

func ReadFileEx(match, name string) ([]byte, error)

Types

type PathSlice

type PathSlice []string

func (PathSlice) Split

func (ss PathSlice) Split(pred func(string) bool) (string, []string)

func (PathSlice) ToAbs

func (ss PathSlice) ToAbs() PathSlice

func (PathSlice) ToBase

func (ss PathSlice) ToBase() PathSlice

Jump to

Keyboard shortcuts

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