across any real world usecases for fmt.Scan ?
One usecase that comes to mind: User is allowed to provide in a config, how it wants filenames of a collection of images to be formatted. Filenames contain the project they belong to and the frame number that the image corresponds to User might provide someting like, %s_%d.txt Then the program can both write files in this format, and read them back using fmt.sprintf and fmt.scan
Обсуждают сегодня