@@ -162,7 +162,7 @@ func (pm *PackageManager) ResolveFQBN(fqbn *cores.FQBN) (
162162 platformRelease := platform .GetInstalled ()
163163 if platformRelease == nil {
164164 return targetPackage , nil , nil , nil , nil ,
165- fmt .Errorf ("Platform %s is not installed" , platformRelease )
165+ fmt .Errorf ("platform %s is not installed" , platformRelease )
166166 }
167167
168168 // Find board
@@ -210,31 +210,31 @@ func (pm *PackageManager) LoadPackageIndex(URL *url.URL) error {
210210
211211// Package looks for the Package with the given name, returning a structure
212212// able to perform further operations on that given resource
213- func (pm * PackageManager ) Package (name string ) * packageActions {
213+ func (pm * PackageManager ) Package (name string ) * PackageActions {
214214 //TODO: perhaps these 2 structure should be merged? cores.Packages vs pkgmgr??
215215 var err error
216216 thePackage := pm .packages .Packages [name ]
217217 if thePackage == nil {
218218 err = fmt .Errorf ("package '%s' not found" , name )
219219 }
220- return & packageActions {
220+ return & PackageActions {
221221 aPackage : thePackage ,
222222 forwardError : err ,
223223 }
224224}
225225
226226// Actions that can be done on a Package
227227
228- // packageActions defines what actions can be performed on the specific Package
228+ // PackageActions defines what actions can be performed on the specific Package
229229// It serves as a status container for the fluent APIs
230- type packageActions struct {
230+ type PackageActions struct {
231231 aPackage * cores.Package
232232 forwardError error
233233}
234234
235235// Tool looks for the Tool with the given name, returning a structure
236236// able to perform further operations on that given resource
237- func (pa * packageActions ) Tool (name string ) * toolActions {
237+ func (pa * PackageActions ) Tool (name string ) * ToolActions {
238238 var tool * cores.Tool
239239 err := pa .forwardError
240240 if err == nil {
@@ -244,7 +244,7 @@ func (pa *packageActions) Tool(name string) *toolActions {
244244 err = fmt .Errorf ("tool '%s' not found in package '%s'" , name , pa .aPackage .Name )
245245 }
246246 }
247- return & toolActions {
247+ return & ToolActions {
248248 tool : tool ,
249249 forwardError : err ,
250250 }
@@ -254,15 +254,15 @@ func (pa *packageActions) Tool(name string) *toolActions {
254254
255255// Actions that can be done on a Tool
256256
257- // toolActions defines what actions can be performed on the specific Tool
257+ // ToolActions defines what actions can be performed on the specific Tool
258258// It serves as a status container for the fluent APIs
259- type toolActions struct {
259+ type ToolActions struct {
260260 tool * cores.Tool
261261 forwardError error
262262}
263263
264264// Get returns the final representation of the Tool
265- func (ta * toolActions ) Get () (* cores.Tool , error ) {
265+ func (ta * ToolActions ) Get () (* cores.Tool , error ) {
266266 err := ta .forwardError
267267 if err == nil {
268268 return ta .tool , nil
@@ -271,7 +271,7 @@ func (ta *toolActions) Get() (*cores.Tool, error) {
271271}
272272
273273// IsInstalled checks whether any release of the Tool is installed in the system
274- func (ta * toolActions ) IsInstalled () (bool , error ) {
274+ func (ta * ToolActions ) IsInstalled () (bool , error ) {
275275 if ta .forwardError != nil {
276276 return false , ta .forwardError
277277 }
@@ -284,27 +284,27 @@ func (ta *toolActions) IsInstalled() (bool, error) {
284284 return false , nil
285285}
286286
287- func (ta * toolActions ) Release (version * semver.RelaxedVersion ) * toolReleaseActions {
287+ func (ta * ToolActions ) Release (version * semver.RelaxedVersion ) * ToolReleaseActions {
288288 if ta .forwardError != nil {
289- return & toolReleaseActions {forwardError : ta .forwardError }
289+ return & ToolReleaseActions {forwardError : ta .forwardError }
290290 }
291291 release := ta .tool .GetRelease (version )
292292 if release == nil {
293- return & toolReleaseActions {forwardError : fmt .Errorf ("release %s not found for tool %s" , version , ta .tool .String ())}
293+ return & ToolReleaseActions {forwardError : fmt .Errorf ("release %s not found for tool %s" , version , ta .tool .String ())}
294294 }
295- return & toolReleaseActions {release : release }
295+ return & ToolReleaseActions {release : release }
296296}
297297
298298// END -- Actions that can be done on a Tool
299299
300- // toolReleaseActions defines what actions can be performed on the specific ToolRelease
300+ // ToolReleaseActions defines what actions can be performed on the specific ToolRelease
301301// It serves as a status container for the fluent APIs
302- type toolReleaseActions struct {
302+ type ToolReleaseActions struct {
303303 release * cores.ToolRelease
304304 forwardError error
305305}
306306
307- func (tr * toolReleaseActions ) Get () (* cores.ToolRelease , error ) {
307+ func (tr * ToolReleaseActions ) Get () (* cores.ToolRelease , error ) {
308308 if tr .forwardError != nil {
309309 return nil , tr .forwardError
310310 }
0 commit comments