Skip to content
Snippets Groups Projects
Commit 79bd26a2 authored by Martin Schmollinger's avatar Martin Schmollinger
Browse files

Solution to exercise of unit 02-04

parent 4ce53e64
No related branches found
No related tags found
No related merge requests found
module gitlab.reutlingen-university.de/go-exercises/go-starter/exercise_0204
go 1.20
package main
import (
"fmt"
"os"
)
func printSlice(s []string) {
fmt.Printf("%p –len: %d cap: %d %#v\n", s, len(s), cap(s), s)
}
func main() {
printSlice(os.Args)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment