func NewProjectFromPath(absPath string) *Project {
	if absPath == "" || !filepath.IsAbs(absPath) {
		return nil
	}

	p := new(Project)
	p.absPath = absPath
	p.name = filepath.ToSlash(trimSrcPath(p.absPath, p.SrcPath()))
	return p
}
// NewProjectFromPath returns Project with specified absolute path to
// package.
// If absPath is blank string or if absPath is not actually absolute,
// it returns nil.
NewProjectFromPath returns Project with specified absolute path to
package.
If absPath is blank string or if absPath is not actually absolute,
it returns nil.
// NewProjectFromPath returns Project with specified absolute path to // package . // If absPath is blank string or if absPath is not actually absolute // it returns nil .
func NewProjectFromPath(absPath string) *Project {
	if absPath == "" || !filepath.IsAbs(absPath) {
		return nil
	}
	p := new(Project)
	p.absPath = absPath
	p.name = filepath.ToSlash(trimSrcPath(p.absPath, p.SrcPath()))
	return p
}
func NewProjectFromPath ( absPath string ) * Project { if absPath == " " || ! filepath . IsAbs ( absPath ) { return nil } p := new ( Project ) p . absPath = absPath p . name = filepath . ToSlash ( trimSrcPath ( p . absPath , p . SrcPath ( ) ) ) return p }
NewProjectFromPath returns Project with specified absolute path to
package.
NewProjectFromPath returns Project with specified absolute path to package .