Skip to content

webtize/go_coding_challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Go Coding Challenges

Welcome to your Go coding challenges! These exercises are designed to test your understanding of Go basics, data structures, structs, and standard libraries.

Instructions

  1. Navigate to the challenges directory.
  2. Open each file (e.g., basics.go) and read the comments to understand the task.
  3. Implement the function marked with TODO.
  4. Run the tests to verify your solution.

Running Tests

To run all tests:

go test ./challenges/...

To run tests for a specific challenge (e.g., basics):

go test ./challenges/basics.go ./challenges/basics_test.go
# OR simply inside the directory
go test -v -run TestProcessNumbers ./challenges

Challenges Overview

  1. Basics (basics.go): Work with slices, loops, and basic arithmetic.
  2. Data Structures (structures.go): Use maps and string manipulation to count word frequencies.
  3. Structs & Methods (structs.go): Build a simple inventory system using structs and methods.
  4. Standard Libraries (libraries.go): Parse log entries using time and strings packages.

Good luck!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages