Files
learngo/06-variables/04-assignment/exercises/10-discard-the-file/main.go

27 lines
579 B
Go

// For more tutorials: https://blog.learngoprogramming.com
//
// Copyright © 2018 Inanc Gumus
// Learn Go Programming Course
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
//
package main
// ---------------------------------------------------------
// EXERCISE: Discard The File
//
// 1. Print only the directory using `path.Split`
//
// 2. Discard the file part
//
// RESTRICTION
// Use short declaration
//
// EXPECTED OUTPUT
// secret/
// ---------------------------------------------------------
func main() {
// ? ?= path.Split("secret/file.txt")
}