Practical Go Modules


Course Number: GO-110

Duration: 0.5 days (3.25 hours)

Format: Live, hands-on

Go Programming Training Overview

This Practical Go Modules training course teaches attendees how to use Go to declare and automatically download dependencies of external packages based on semantic versioning. Students learn how to effectively use Go Modules (the standard package manager for Go projects) to build more reliable, reproducible builds of their software.

Location and Pricing

This course is taught as a private, live online class for teams of 3 or more. All our courses are hands-on, instructor-led, and tailored to fit your group’s goals and needs. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for online corporate training, please contact us.

Objectives

  • Understand the benefits and goals of Go modules
  • Use the Go modules tooling to effectively manage dependencies
  • Rely on Go modules for declaring and consuming dependencies
  • Switch to Go modules from a different nonstandard package manager
  • Handle real-world dependency management challenges

Prerequisites

  • A basic understanding of Go
  • Familiarity with package management concepts in any language (knowledge of Go package managers not required)

Outline

Expand All | Collapse All

Why Modules?
  • What’s your main learning objective?
  • Using GOPATH to resolve packages
  • Using vendoring to resolve packages
  • What problems can arise?
  • Goals of modules
  • Modules overview, characteristics, and resolution workflow
Modules Quickstart
  • Initializing modules for a project
  • Recap of semantic versioning
  • Adding a dependency and version selection
  • Listing dependency versions
  • Initializing and using modules for a project
Modules Day-to-Day Workflows
  • Dealing with transitive dependencies
  • Verifying dependencies
  • Removing unused dependencies
  • Handling transitive dependencies
  • Verify and tidy dependencies
Managing Modules Versions
  • Module versioning rules
  • Declaring a dependency by specific version, wildcard, or commit
  • Using a dependency with multiple major versions
  • Executing module queries
Advanced Modules Techniques
  • Using vendoring with module
  • Using a custom modules proxy
  • Migration strategies for adopting modules
  • Vendoring dependencies
  • JFrog GoCenter to proxy dependencies
  • Migrating to Go modules
Conclusion

Training Materials

All attendees receive a copy of the instructor’s presentation and related code.

Software Requirements

A computer with the Go runtime (13.x or higher) and an IDE (optimally GoLand, which will be used for course examples, or VS Code + the Go plug-in) installed.



Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan